Instruction Formats
323
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
13.6 Instruction Formats
A total of 7 different instruction formats are supported for the various operations. The following sections
describe the position, size, and function of each of the fields within the various formats.
Figure 13-2. Format 1a: (All Arithmetic and Logical Functions – Register Op2)
31
29
28
24
23
21
20
16
OP
ALUOP
IO
Rs2Sel
Rs2
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-7. Format 1a: (All Arithmetic and Logical Functions – Register 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
0 = Op2 is a register
23-21
Rs2Sel
0 = Select bits 7:0 from the source register 2
1 = Select bits 15:8 from the source register 2
2 = Select bits 23:16 from the source register 2
3 = Select bits 31:24 from the source register 2
4 = Select bits 15:0 from the source register 2
5 = Select bits 23:8 from the source register 2
6 = Select bits 31:16 from the source register 2
7 = Select bits 31:0 from the source register 2
20-16
Rs2
0 – 31 = This field selects the register number which contains the second source operand
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