GR740-UM-DS, Nov 2017, Version 1.7
247
www.cobham.com/gaisler
GR740
The branch condition word is formed as shown in table 294.
Note that you can get a constant true condition by setting MODE=0 and STCC=0xFF, and a constant
false condition by setting STCC=0x00. 0x800000FF can thus be used as an end-of-list marker.
Table 294.
GR1553B branch condition word (offset 0x00)
31
30
27
26
25
24
23
16
15
8
7
0
1
Reserved (0)
IRQC
ACT
MODE
RT2CC
RTCC
STCC
31
Must be 1 to identify as branch
30 : 27
Reserved - Set to 0
26
Interrupt if condition met (IRQC)
25
Action (ACT) - What to do if condition is met, 0 - Suspend schedule, 1 - Jump
24
Logic mode (MODE):
0 = Or mode (any bit set in RT2CC, RTCC is set in RT2ST,RTST, or result is in STCC mask)
1 - And mode (all bits set in RT2CC,RTCC are set in RT2ST,RTST and result is in STCC mask)
23:16
RT 2 Condition Code (RT2CC) - Mask with bits corresponding to RT2ST in result word of last transfer
15:8
RT Condition Code (RTCC) - Mask with bits corresponding to RTST in result word of last transfer
7:0
Status Condition Code (STCC) - Mask with bits corresponding to status value of last transfer