Download CubeSuite+ V1.00.00 Integrated Development Environment User`s

Transcript
CubeSuite+ Ver.1.00.00
Remark
CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS
Products of V850E1 type D execute interleave access to internal flash memory or internal mask ROM.
Therefore, it takes two clocks (three clocks for V850E1 type E) to fetch an instruction immediately after
an interrupt has occurred or after a branch destination instruction has been executed. Consequently, it
takes three clocks (four clocks for V850E1 type E) to execute the ID stage of the branch destination
instruction.
Example
Interleave access
instruction 1
IF
instruction 2
IF
ID
EX
MEM
WB
IF
IF
ID
EX
MEM
WB
IF
IF
ID
EX
MEM
WB
IF
IF
ID
IF
IF
instruction 3
Branch instruction
Branch destination instruction
ID
EX
MEM
WB
3 clocks
(3) Efficient pipeline processing
Because the V850E1 has an ID stage for branch/SLD instructions in addition to the ID stage on the master pipeline, it is possible to perform efficient pipeline processing.
Following figure shows an example of a pipeline operation where the next branch instruction was fetched in the IF
stage of the ADD instruction (instruction fetch from the ROM directly connected to the dedicated bus is performed
in 32-bit units. Both ADD instructions and branch instructions in following figure use a 16-bit format instruction).
(a) V850 microcontrollers
Although the instruction codes up to the next branch instruction are fetched in the IF stage of the ADD instruction, the ID stage of the ADD instruction and the ID stage of the branch instruction cannot be executed
together within the same clock. Therefore, it takes 5 clocks from the branch instruction fetch to the branch
destination instruction fetch.
ADD instruction
Branch instruction
IF
ID
EX
(MEM)
WB
IF
ID
EX
MEM
WB
IF
ID
Branch destination instruction
EX
MEM
5 clocks
R20UT0553EJ0100 Rev.1.00
Apr 01, 2011
Page 612 of 943