GX5055 Command Microcode

The control memory in a GX5055 contains a 32-bit command for each step. These commands are loaded into the on-board sequencer that controls the flow of the program counter and the direction of I/O channels. Each command is divided into six fields. The table displays a command layout diagram with the name of each field and bit position. A definition of each command field follows:

BIT #
32      25
24        22
21     20
19  17  
16     0
Field Name

Reserved (0)

Operation Code
Register
Condition
Address

Command Layout

Command Field Descriptions

Command Field
Description
Reserved, bits 32-25
Reserved for future versions. Must be set to 0.
Operation Code, bits 24-22
These bits provide the command code, as described in the table Operation Code Field.
Register, bits 21 and 20
Specifies the internal register used with either the related command or the external event line number (0-3) conditions, as described in table Register Fields.
Condition, bits 19-17
This field is the condition code for related commands and tree address MSBs for the JUMP FAR command. Condition codes are described in table Condition XXX Field.
Address, bits 16-0
This field contains the address for branch commands: JUMP, LOOP, GOTO and CALL. When the Operations Code is the SET command, this field (bits 0-15) are used as data to be assigned to a register.

Command Code Structure

Mnemonic
Additional fields
Value
Bit 24
Bit 23
Bit 22

NOP

None

0

0

0

0

JUMP FAR

Bits 15 – 0 Destination = Address

1

0

0

1

JUMP NEAR

Condition & Address

2

0

1

0

LOOP

Reg, Address & Condition

3

0

1

1

SET

Reg & Address

4

1

0

0

CALL

Condition & Address*

5

1

0

1

RETURN

Condition

6

1

1

0

PAUSE

Condition

7

1

1

1

HALT

Condition = 7

7

1

1

1

*Address in the CALL is divided by 8.

Operation Code Field

 

Register
External Event Line #B*
Bit 21
Bit 20
A
0
0
0
B
1
0
1
C
2
1
0

* See Table B-4

Register Fields

Condition
Value
Bit 19
Bit 18
Bit 17

None

0

0

0

0

HALT when combined with PAUSE command

7

1

1

1

*B is determined by the Register field

Condition XXX Field

Coding and Writing Control Commands

When writing commands to a file or to the control memory, the following guidelines should be observed:

1.    Commands other than NOP can reside every four steps. Microcode should be the same for all four steps except for I/O Groups Control direction and Operation Code. The Operation Code should be encoded only in the fourth step.

2.    The direction can be changed at each step.

3.    Control memory and output memory must be written to all boards, Master and Slave.