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.
Содержание ADSP-BF535 Blackfin
Страница 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Страница 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 908: ...SDRAM Controller External Bus Interface Unit B 36 ADSP BF535 Blackfin Processor Hardware Reference...