March 2002 Release
367
Virtex-II Pro™ Platform FPGA Documentation
1-800-255-7778
Branch and Flow-Control Instructions
R
If data translation is enabled, an attempt to access data in memory when a valid TLB
entry is not present causes the data TLB-miss interrupt handler to be invoked.
•
Instruction TLB-Miss Exception.
If instruction translation is enabled, an attempt to access instructions in memory when
a valid TLB entry is not present causes the instruction TLB-miss interrupt handler to be
invoked.
Other exceptions can occur during user-mode program execution that are not directly
caused by instruction execution. These are also described in
•
Machine-check exceptions.
•
Exceptions caused by external devices.
•
Exceptions caused by a timer.
•
Debug exceptions.
Branch and Flow-Control Instructions
Branch instructions redirect program flow by altering the next-instruction address non-
sequentially. Branches unconditionally or conditionally alter program flow forward or
backward using either an absolute address or an address relative to the branch-instruction
address. Branches calculate the target address using the contents of the CTR, LR, or fields
within the branch instruction. Optionally, a branch-return address can be automatically
loaded into the LR by setting the LK instruction-opcode bit to 1. This option is useful for
specifying the return address for subroutine calls and causes the address of the instruction
following the branch to be loaded in the LR. Branches are used for all non-sequential
program flow including jumps, loops, calls and returns.
Branch-conditional instructions redirect program flow if a tested condition is true. These
instructions can test a bit value within the CR, the value of the CTR, or both. Condition-
register logical instructions are provided to set up the tests for branch-conditional
instructions.
Conditional Branch Control
With branch-conditional instructions, the BO opcode field specifies the branch-control
conditions and how the branch affects the CTR. The BO field can specify a test of the CR
and it can specify that the CTR be decremented and tested. The BO field can also be
initialized to reverse the default prediction performed by the processor. The bits within the
BO field are defined as shown in
Table 3-4:
BO Field Bit Definitions
BO Bit
Description
BO[0]
CR Test Control
0—Test the CR bit specified by the BI opcode field for the value indicated by BO[1].
1—Do not test the CR.
BO[1]
CR Test Value
0—Test for CR[BI]
=
0.
1—Test for CR[BI]
=
1.
Содержание Virtex-II Pro PPC405
Страница 1: ...R Volume 2 a PPC405 User Manual Virtex II Pro Platform FPGA Developer s Kit March 2002 Release...
Страница 14: ...322 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation Preface R...
Страница 252: ...560 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation R...
Страница 260: ...568 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation R...
Страница 562: ...870 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation R...