Branches and Sequencing
4-14
ADSP-BF535 Blackfin Processor Hardware Reference
whether the value of the
CC
flag is true or false (1 or 0). In some cases,
using this instruction instead of a branch eliminates the cycles lost because
of the branch.
Example code:
IF CC R0 = P0 ;
Branch Prediction
The Sequencer supports static branch prediction to accelerate execution of
conditional branches. These branches are executed based on the state of
the
CC
bit.
The branch target address calculation takes place in the AC stage of the
instruction pipeline. In the EX3 stage, the Sequencer compares the actual
CC
bit value to the predicted value. If the value was mis-predicted, the
branch is corrected, and the correct address is available for the WB stage
of the pipeline.
The branch latency for conditional branches is as follows:
• If prediction was “not to take branch,” and branch was actually not
taken: 0
CCLK
cycles.
• If prediction was “not to take branch,” and branch was actually
taken: 6
CCLK
cycles.
• If prediction was “to take branch,” and branch was actually taken:
3
CCLK
cycles.
• If prediction was “to take branch,” and branch was actually not
taken: 6
CCLK
cycles.
For all unconditional branches, the branch target address computed in the
AC stage of the pipeline is sent to the Instruction Fetch address bus at the
beginning of the EX1 stage. All unconditional branches have a latency of 3
CCLK
cycles.
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...