Instruction Formats
337
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
Figure 13-17. Format 5b: (Quick Bit Test and Branch – Immediate Op2)
31
29
28
27
26
25
24
23
21
20
16
OP
BS
BC
BrOff[[9:8]
IO
RESERVED
Imm
15
13
12
8
7
0
Rs1Sel
Rs1
BrOff[7:0]
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
(1)
Branch is taken if any of the 2 conditions are satisfied: BS or BC.
Table 13-22. Format 5b: (Quick Bit Test and Branch – Immediate Op2)
Bit
Field
Description
31-29
OP
0b110 = Specifies Format 5
28
BS
0-1 = Bit Set: If set specifies that branch should be taken if Rs1[Op2[4:0]] == 1
(1)
27
BC
0-1 = Bit Clear: If set specifies that branch should be taken if Rs1[Op2[4:0]] == 0
(1)
26-25
BrOff[9:8]
0-3 = This field contains the 2-MSBs of the 2s complement signed offset for the branch
24
IO
1 = Op2 is a 5-bit immediate value
23-21
RESERVED
20-16
Imm
0-31 = This field selects the bit number of the first operand which is to be compared.
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 that is to be
compared
7-0
BrOff[7:0]
0-255 = This field contains the 8-LSBs of the 2-s complement signed offset for the branch