Adaptec 1737100 Programmer Manual - Page 65

Data[6] - Load ALU out to LC.

Page 65 highlights

Frame Processor Architecture Name MuxSelInput1 AluCtrl BranchAdd Data Table 5-2. Instruction Formats (Continued) Bit Number Description [29:17] Controls the 8 input mux operation at ALU input 1 '0' - Data '1' - WR1[15:0] '2' - WR2 '3' - WR3 '4' - Status[31:16] '5' - Status[15:0] '6' - FrameCnt '7' - WR1[31:15] [23:20] '0' - NOP (Output=Input2, Flag=False) '1' - ADD (Input1+Input2) '2' - Check for Equality (Input1=Input2) '3' - Check for greater than (Input1>Input2) '4' - Check for greater than or equal (Input1>=Input2) '5' - OR (Input1 | Input2) '6' - AND (Input1 & Input2) '7' - XOR (Input1 ^ Input2) '8' - Invert (~Input2) '9' - AddLong ({Wreg1[31:16],Input1} + Input2) 'A' - Decrement2 (Input1 - Input2) 'B' - Decrement1 (Input2 - Input1) '15'-'12' - Reserved [31:24] When the Opcode is a Branch to immediate command, then BranchAdd points to the next instruction memory location. If the command is Read/Write it indicates the target address. [47:32] General data 1 field. Data is also a control field for the barrel shifter and the Loop Counter. If BarrelShifterCtrl=1 then: Data[15] - If '0' shift right, else shift Left. Data[14:11] - Shift size. if LoadLC=1 then: Data[10] - Defines the operation mode of LC. If it's set, LC is loaded with a specified number, else LC is loaded with double the specified number. Note, LC is decremented by 2 every time an instruction is executed. Data[9] - If '0' decrement LC every DataValid, else every clock. Data[8] - When the bit is set and executing an instruction in a loop and ReqNextData is asserted, then ReqNextData is cleared when executing the last instruction in the loop. Data[7] - Load Immediate data to LC. Data[6] - Load ALU out to LC. Data[5] - Load WR1 to LC. Data[4] - Load WR2 to LC. Data[3] - Load WR3 to LC. Data[2] - Load WR4 to LC. Ì 5-9

  • 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-9
Frame Processor Architecture
MuxSelInput1
[29:17]
Controls the 8 input mux operation at ALU input 1
0
’ - Data
1
’ - WR1[15:0]
2
’ - WR2
3
’ - WR3
4
’ - Status[31:16]
5
’ - Status[15:0]
6
’ - FrameCnt
7
’ - WR1[31:15]
AluCtrl
[23:20]
0
’ - NOP (Output=Input2, Flag=False)
1
’ - ADD (Input1+Input2)
2
’ - Check for Equality (Input1=Input2)
3
’ - Check for greater than (Input1>Input2)
4
’ - Check for greater than or equal (Input1>=Input2)
5
’ - OR (Input1 | Input2)
6
’ - AND (Input1 & Input2)
7
’ - XOR (Input1 ^ Input2)
8
’ - Invert (~Input2)
9
’ - AddLong ({Wreg1[31:16],Input1} + Input2)
A
’ - Decrement2 (Input1 - Input2)
B
’ - Decrement1 (Input2 - Input1)
‘15’-’12’ - Reserved
BranchAdd
[31:24]
When the Opcode is a Branch to immediate command, then
BranchAdd points to the next instruction memory location. If the
command is Read/Write it indicates the target address.
Data
[47:32]
General data 1 field. Data is also a control field for the barrel shifter
and the Loop Counter.
If BarrelShifterCtrl=1 then:
Data[15] - If ‘0’ shift right, else shift Left.
Data[14:11] - Shift size.
if LoadLC=1 then:
Data[10] - Defines the operation mode of LC. If it’s set, LC is
loaded with a specified number, else LC is loaded with double the
specified number.
Note, LC is decremented by 2 every time an instruction is
executed.
Data[9] - If ‘0’ decrement LC every DataValid, else every clock.
Data[8] - When the bit is set and executing an instruction in a loop
and
ReqNextData
is asserted, then
ReqNextData
is cleared when
executing the last instruction in the loop.
Data[7] - Load Immediate data to LC.
Data[6] - Load ALU out to LC.
Data[5] - Load WR1 to LC.
Data[4] - Load WR2 to LC.
Data[3] - Load WR3 to LC.
Data[2] - Load WR4 to LC.
Table 5-2. Instruction Formats (Continued)
Name
Bit Number
Description