Adaptec 1737100 Programmer Manual - Page 62

Instruction Formats

Page 62 highlights

AIC-6915 Ethernet LAN Controller Programmer's Manual Instruction Formats Table 5-2 describes the Instruction Formats. Name Opcode 0 Opcode 1 Opcode 2 Opcode 3 Opcode 4 Opcode 5 Opcode 6 Opcode 7 Opcode 8 Opcode 9 Table 5-2. Instruction Formats Bit Number Description 3:0 Execute - Execute instruction as specified by control fields 3:0 BrToImmIfTrue - Branch to immediate address specified in BRANCHADD field if ALU flag is true 3:0 BrToImmIfFalse - Branch to immediate address specified in BRANCHADD field if ALU flag is false 3:0 BrToWreg3IfTrue - Branch to the location pointed to by WR3 if ALU flag is True 3:0 BrToWreg3IfFalse - Branch to immediate address specified in BRANCHADD field if ALU flag is False 3:0 Write - Write ALU output to 8-bit address defined in BRANCHADD[7:0]. If BRANCHADD[7] is set the write operation is targeted to a register implemented in the GFP module. If the bit is reset the target register is implemented externally. 3:0 Read - Read location pointed to by the address defined in BRANCHADD[7:0], pass the data through the ALU and store it in the working registers. 3:0 Halt - Halt the processor. Wait for the assertion of ResetProcessor input, then reset and start execution at address 0. 3:0 CheckIpv4ProtocolId - Special instruction for checking Ipv4 Protocol ID field, then branch to one of three possible addresses. The GFP recognizes 3 Protocol IDs: TCPFRAMEID = 8'h06, Branch address = BRANCHADD[7:0] UDPFRAMEID = 8'h11, Branch address = DATA[7:0] ICMPFRAMEID = 8'h00, Branch address = DATA[15:8] 3:0 ReadIpv6ExtHeader - Special instruction for reading the Next Header and Length fields of an Ipv6 extension header. After the instruction is executed, WR2 stores the size of the extension header in 16-bit halfword units minus 1 (for the first 16-bit already read). WR3 stores the total size of the frame in bytes. WR4 stores the Next Header field. 5-6

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190

5-6
AIC-6915 Ethernet LAN Controller Programmer’s Manual
Instruction Formats
Table 5-2 describes the Instruction Formats.
Table 5-2. Instruction Formats
Name
Bit Number
Description
Opcode 0
3:0
Execute
- Execute instruction as specified by control fields
Opcode 1
3:0
BrToImmIfTrue
- Branch to immediate address specified in
B
RANCH
A
DD
field if ALU flag is true
Opcode 2
3:0
BrToImmIfFalse
- Branch to immediate address specified in
B
RANCH
A
DD
field if ALU flag is false
Opcode 3
3:0
BrToWreg3IfTrue
- Branch to the location pointed to by WR3 if
ALU flag is True
Opcode 4
3:0
BrToWreg3IfFalse
- Branch to immediate address specified in
B
RANCH
A
DD
field if ALU flag is False
Opcode 5
3:0
Write
- Write ALU output to 8-bit address defined in
B
RANCH
A
DD
[7:0]
. If
B
RANCH
A
DD
[7]
is set the write operation is
targeted to a register implemented in the GFP module. If the bit is
reset the target register is implemented externally.
Opcode 6
3:0
Read
- Read location pointed to by the address defined in
B
RANCH
A
DD
[7:0]
, pass the data through the ALU and store it in
the working registers.
Opcode 7
3:0
Halt
- Halt the processor. Wait for the assertion of
ResetProcessor
input, then reset and start execution at address 0.
Opcode 8
3:0
CheckIpv4ProtocolId
- Special instruction for checking Ipv4
Protocol ID field, then branch to one of three possible addresses.
The GFP recognizes 3 Protocol IDs:
T
CP
F
RAME
I
D
= 8'h06,
Branch address =
B
RANCH
A
DD
[7:0]
U
DP
F
RAME
I
D
= 8'h11,
Branch address =
D
ATA
[7:0]
I
CMP
F
RAME
I
D
= 8'h00,
Branch address =
D
ATA
[15:8
]
Opcode 9
3:0
ReadIpv6ExtHeader
- Special instruction for reading the Next
Header and Length fields of an Ipv6 extension header. After the
instruction is executed, WR2 stores the size of the extension header
in 16-bit halfword units minus 1 (for the first 16-bit already read).
WR3 stores the total size of the frame in bytes. WR4 stores the Next
Header field.