Unit 5
Unit 5
-S.R.Milke
The Indirect Cycle
• The execution of an instruction may involve one or more
operands in memory, each of which requires a memory
access.
• Further if indirect addressing is used then additional memory
accesses are required
• We can think of the fetching of indirect addresses as one
more instruction stages
• The main line of activity consists of alternating instruction
fetch and instruction execution activities.
• After an instruction is fetched it is examined to determine if
any indirect addressing is involved
• If so the required operands are fetched using indirect
addressing
• Following execution an interrupt may be processed before
Instruction Cycle State Diagram
Data Flow
• The exact sequence of events during an
instruction cycle depends on the design of the
processor
• We can indicate in general terms what must
happen
• Let us assume that a processor that employs a
memory address register (MAR), a memory
buffer register (MBR) a program counter (PC)
and an instruction register (IR).
System attributes to Performance
Clock Rate and CPI
Clock Rate and CPI (Cont….)
Execution Time (CPU Time)
Execution Time (CPU Time) Cont….
Execution Time (CPU Time) Cont….
System Attributes
MIPS Rate
Throughput Rate (Performance)
Instruction Types and CPI
Example 1
Example 2
Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and
average cycles per instruction of four. The same processor is upgraded to
a pipelined processor with five stages; but due to the internal pipeline
delay, the clock speed is reduced to 2 gigahertz. Assume that there are
no stalls in the pipeline. The speed up achieved in this pipelined
processor is __________.
(A) 3.2
(B) 3.0
(C) 2.2
(D) 2.0
Speedup = ExecutionTimeOld / ExecutionTimeNew