Given a 6 stage pipeline with the following stages: a) FI Fetch Instruction b) DI Decode Instruction
Question:
Given a 6 stage pipeline with the following stages:
a) FI Fetch Instruction
b) DI Decode Instruction
c) CO Calculate Operan
d) FO Fetch Operand
e) EO Execute Operand
f) WO Write Operand
Assume all instructions have these 6 stages unless otherwise noted and all 6 stages can be run in parallel. Assume each stage requires 1 clock cycle to complete. What is the pipeline behavior (timing diagram, first 11 clock cycles) for the following instructions in this order and what is the average number of cycles per instruction?
orcc
st (assume FI, DI, CO, FO,WO)
andcc
ld (assume FI, DI, CO, FO, WO)
Addcc
Discuss why pipelines are utilized in computer processors and architecture ? If the number of instructions in the program is increased to 50 instructions (44 instructions utilize 6 stages in the pipeline, 6 instructions utilize only 5 stages and these occur first in the program), what will the new average CPI be? If the 6 instructions that utilize only 5 stages occur throughout the program of 50 instructions, will the average CPI when compared to the having those 6 instructions at the beginning of the program be the same, go up or go down and why ?
Thermodynamics for Engineers
ISBN: ?978-1133112860
1st edition
Authors: Kenneth A. Kroos, Merle C. Potter