English
Language : 

SH-2A Datasheet, PDF (48/501 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 4 Instruction Features
(6) Delayed Branching
With the exception of some instructions, unconditional branch instructions, etc., are executed as
delayed branches. With a delayed branch instruction, the branch is made after execution of the
instruction immediately following the delayed branch instruction. This reduces disruption of the
pipeline when a branch is made.
In a delayed branch, the actual branch operation occurs after execution of the slot instruction.
However, instruction execution for register updating, etc., excluding the branch operation, is
performed in delayed branch instruction → delay slot instruction order. For example, even though
the contents of the register holding the branch destination address are changed in the delay slot,
the branch destination address remains as the register contents prior to the change.
Table 4.2 Delayed Branch Instructions
SH-2A/SH2A-FPU CPU
BRA TRGET
ADD R1,R0
Description
ADD is executed before
branch to TRGET.
Example of Other CPU
ADD.W R1,R0
BRA
TRGET
(7) Addition of Unconditional Branch Instructions with No Delay Slot
The SH-2A/SH2A-FPU features the addition of unconditional branch instructions in which a delay
slot instruction is not executed. This makes it possible to cut down on the number of unnecessary
NOP instructions, and so reduce the code size.
(8) Multiplication/Accumulation Operation
16bit × 16bit → 32-bit multiplication operations are executed in one to two cycles. 16bit × 16bit +
64bit → 64-bit multiplication/accumulation operations are executed in two to three cycles. 32bit ×
32bit → 64-bit multiplication and 32bit × 32bit + 64bit → 64-bit multiplication/accumulation
operations are executed in two to four cycles.
(9) T Bit
The T bit in the status register changes according to the result of the comparison, and in turn is the
condition (true/false) that determines if the program will branch. The number of instructions after
T bit in the status register is kept to a minimum to improve the processing speed.
Rev. 3.00 Jul 08, 2005 page 34 of 484
REJ09B0051-0300