Typewriter User Manual

MOTOROLA MC68340 USER’S MANUAL 5- 93
analyzed. To derive the actual instruction execution times for an instruction sequence, the
instruction times listed in the tables must be adjusted to account for overlap.
The formula for this calculation is as follows:
C
1
min (T
1
, H
2
) + C
2
min (T
2
, H
3
) + C
3
min (T
3
, H
4
) + .. .. .
where:
C
N
is the number of cycles listed for instruction N
T
N
is the tail time for instruction N
H
N
is the head time for instruction N
min (T
N
, H
M
) is the minimum of parameters T
N
and H
M
The number of cycles for the instruction (C
N
) can include one or two EA calculations in
addition to the raw number in the cycles column. In these cases, calculate overall
instruction time as if it were for multiple instructions, using the following equation:
CEA min (T
EA
, H
OP
) + C
OP
where:
CEA is the instruction’s EA time
C
OP
is the instruction’s operation time
T
EA
is the EA’s tail time
H
OP
is the instruction operation’s head time
min (T
N
, H
M
) is the minimum of parameters T
N
and H
M
The overall head for the instruction is the head for the EA, and the overall tail for the
instruction is the tail for the operation. Therefore, the actual equation for execution time
becomes:
C
OP1
min (T
OP1
, H
EA2
) + CEA
2
min (T
EA2
, H
OP2
) + C
OP2
min (T
OP2
, H
EA3
) + . . .
Every instruction must prefetch to replace itself in the instruction pipe. Usually, these
prefetches occur during or after an instruction. A prefetch is permitted to begin in the first
clock of any indexed EA mode operation.
Additionally, a prefetch for an instruction is permitted to begin two clocks before the end of
an instruction provided the bus is not being used. If the bus is being used, then the
prefetch occurs at the next available time when the bus would otherwise be idle.
5.7.1.7 EFFECTS OF NEGATIVE TAILS. When the CPU32 changes instruction flow, the
instruction decode pipeline must begin refilling before instruction execution can resume.
Refilling forces a two-clock idle period at the end of the change-of-flow instruction. This
idle period can be used to prefetch an additional word on the new instruction path.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...