Instruction Formats
325
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
Figure 13-3. Format 1b: (All Arithmetic and Logical Functions – Immediate Op2)
31
29
28
24
23
16
OP
ALUOP
IO
Imm2
15
13
12
8
7
5
4
0
Rs1Sel
Rs1
RdSel
Rd
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 13-8. Format 1b: (All Arithmetic and Logical Functions – Immediate Op2)
Bit
Field
Description
31-29
OP
0b000 = Specifies Format 1
28-25
ALUOP
0 = ADD
1 = ADC
2 = SUB
3 = SUC
4 = LSL
5 = LSR
6 = RSB
7 = RSC
8 = AND
9 = OR
10 = XOR
11 = NOT
12 = MIN
13 = MAX
14 = CLR
15 = SET
24
IO
1 = Op2 is an 8-bit immediate
23-16
Imm2
0-255 = This field is the 8-bit immediate value to be used as the source operand 2.
15-13
Rs1Sel
0 = Select bits 7:0 from the source register 1
1 = Select bits 15:8 from the source register 1
2 = Select bits 23:16 from the source register 1
3 = Select bits 31:24 from the source register 1
4 = Select bits 15:0 from the source register 1
5 = Select bits 23:8 from the source register 1
6 = Select bits 31:16 from the source register 1
7 = Select bits 31:0 from the source register 1
12-8
Rs1
0-31 = This field selects the register number which contains the first source operand
7-5
RdSel
0 = Select bits 7:0 of the destination register
1 = Select bits 15:8 of the destination register
2 = Select bits 23:16 of the destination register
3 = Select bits 31:24 of the destination register
4 = Select bits 15:0 of the destination register
5 = Select bits 23:8 of the destination register
6 = Select bits 31:16 of the destination register
7 = Select bits 31:0 of the destination register
4-0
Rd
0-31 = This field selects the destination register number to which the result should be written.