
6
269
Calculation number of cycles
6.1
Instruction queue buffer
Sample program
Address Code Instruction
FC06C 64 JMP TEST_11
FC06D 04 NOP
FC06E 04 NOP
FC06F 04 NOP
FC070 04 NOP
FC071 04 NOP
FC072 TEST_11:
FC072 73FF00400240 MOV.W 04000h, 04002h
FC078 64 JMP TEST_12
FC079 04 NOP
FC07A 04 NOP
FC07B 04 NOP
FC07C 04 NOP
FC07D 04 NOP
FC07E TEST_12:
Content at jump address is
prefetched at the same time
the instruction queue buffer is
cleared.
Fetch code
64
73FF 64
JMP TEST_11 MOV.W JMP TEST_12
Instructions
under execution
Instruction
queue buffer
04 04
73
73 00 0404 04
04 04 04
73
FF FF 40 04 04 04
0402000404
04 0404
7373
F1 F1
40
00
WR
PPPP P
Address bus
Data bus (H)
Data bus (L)
RD
DR : Indicates a data read.
FC06E FC072 04000
73 00
40
FF 40
FC074
FC080
BCLK
: Indicates the locations of the instruction queue buffer that are cleared.
Content at jump address is
prefetched at the same time
the instruction queue buffer
is cleared.
Jump address
40 40
02
40
64
02
73
00
F1
40
FC07E
0040
04
04
04
04
AA
04
04
FC076
FC07A
DW
DR
P : Indicates a prefetch (reading from memory into the instruction queue buffer).
Address from which to read data
64
04
04002
AA
P
Address from which to write data
0240
0FC078
AA
AA
04
64
P
DW : Indicates a data write.
Content at address 4001
16
Content at address 4000
16
The instruction
queue buffer is
emptied, so one
more cycle is waited.
Fetch
FetchFetch
Fetch
Sample program
Address Code Instruction
FC150 64 JMP TEST_11
FC151 04 NOP
FC152 04 NOP
FC153 04 NOP
FC154 04 NOP
FC155 04 NOP
FC156 TEST_11:
FC156 73F10040 MOV.W 04000h, R1
FC15A 64 JMP TEST_12
FC15B 04 NOP
FC15C 04 NOP
FC15D 04 NOP
FC15E 04 NOP
FC15F 04 NOP
FC160 TEST_12:
Content at jump address is prefetched at
the same time the instruction queue buffer
is cleared.
Fetch code
64
73F1 64
JMP TEST_11 MOV.W JMP TEST_12
Instructions
under execution
Instruction
queue buffer
04 04
73
73 64 0404 04
04 04 04
73
F1 F1 04 04 04
04000404
04 0404
7373
FF FF
40
00
WR
P
PP
Address bus
Data bus (H)
Data bus (L)
RD
DR : Indicates a data read.
FC152 FC156
04000
73 00
04
F1 40
FC158
BCLK
: Indicates the locations of the instruction queue buffer that are cleared.
Content at jump address is
prefetched at the same time
the instruction queue buffer
is cleared.
Jump address
40
64
FC162
FC160
0040
04
04
04
04
FC15A
DR
P : Indicates a prefetch (reading from memory into the instruction queue buffer).
Address from which
to read data
64
04
P
P
73
00
FF
40
P
FC15C
AA
04
04
DW : Indicates a data write.
00
40
64
04
64
04
1 wait
AA
Content at address 4001
16
Content at address 4000
16
Fetch Fetch Fetch
Figure 6.1.5.
When executing an instruction to transfer data between even addresses starting from an even address
(Program area: 16-bit bus without wait state; Data area: 16-bit bus without wait state)
Figure 6.1.6. When executing an instruction to read from even addresses starting from an even address
(Program area: 16-bit bus without wait state; Data area: 16-bit bus with wait state)
Komentáře k této Příručce