ADSP-BF535 Blackfin Processor Hardware Reference
4-15
Program Sequencer
Consider the two examples in
Table 4-4
.
Loops and Sequencing
Another type of nonsequential program flow that the Sequencer supports
is looping. A loop occurs when the values in a pair of loop top and loop
bottom registers define an address range that includes the currently exe-
cuting instruction. The corresponding loop counter must contain a
nonzero value. One way to load these registers is by using the Loop Setup
(
LSETUP
) instruction; however, it is also possible to load these registers
directly. The ADSP-BF535 processor provides two sets of dedicated regis-
ters to support two nested loops.
The condition for terminating a loop is that the counter decreases to zero.
This condition tests whether the loop has completed the number of itera-
tions loaded from the Loop Count register (
LC[1]
or
LC[0]
).
Table 4-4. Branch Prediction
Instruction Description
If CC JUMP back_dest (bp)
This instruction tests the
CC
flag, and if it is set,
jumps to a location, identified by the label,
back_dest
.
If
back_dest
is a prior address and the
CC
flag is set,
then the branch is correctly predicted and the branch
latency is reduced.
If CC JUMP sub_dest (bp)
This instruction tests the
CC
flag, and if it is set,
jumps to a location, identified by the label,
sub_dest
.
If
sub_dest
is a subsequent address and the
CC
flag
is set, then the branch is incorrectly predicted and
the branch latency increases.
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...