Instruction Formats
330
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
Figure 13-8. Format 2d: (LMBD - Leftmost Bit Detect - Register Op2)
31
29
28
25
24
23
21
20
16
OP
SUBOB
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-13. Format 2d: (LMBD - Leftmost Bit Detect - Register Op2)
Bit
Field
Description
31-29
OP
0b001 = Specifies Format 2
28-25
SUBOB
3 = Specifies LMBD
24
IO
0 = Op2 is a register
23-21
Rs2Sel
0 = Select bits 7:0 from Rs2
1 = Select bits 15:8 from Rs2
2 = Select bits 23:16 from Rs2
3 = Select bits 31:24 from Rs2
4 = Select bits 15:0 from Rs2
5 = Select bits 23:8 from Rs2
6 = Select bits 31:16 from Rs2
7 = Select bits 31:0 from Rs2
20-16
Rs2
0-31 = Rs2 register number 0-31
15-13
Rs1Sel
0 = Select bits 7:0 from Rs1
1 = Select bits 15:8 from Rs1
2 = Select bits 23:16 from Rs1
3 = Select bits 31:24 from Rs1
4 = Select bits 15:0 from Rs1
5 = Select bits 23:8 from Rs1
6 = Select bits 31:16 from Rs1
7 = Select bits 31:0 from Rs1
12-8
Rs1
0-31 = Rs1 register number 0-31
7-5
RdSel
0 = Select bits 7:0 from Rd
1 = Select bits 15:8 from Rd
2 = Select bits 23:16 from Rd
3 = Select bits 31:24 from Rd
4 = Select bits 15:0 from Rd
5 = Select bits 23:8 from Rd
6 = Select bits 31:16 from Rd
7 = Select bits 31:0 from Rd
4-0
Rd
0-31 = Rd register number 0-31