In: Computer Science
2 – The CPU design team is designing an instruction set with three classes of instructions. Parameters are given in the following table. Consider a program with 65% ALU instructions, 20% memory access instructions, and 15% control instructions. What is the average CPI for this CPU?
Clock Rate: 4GHz
CPI for ALU Inst.: 4
CPI for Memory Inst.: 8
CPI for Control Inst.: 2
ALU instructions=65% and CPI for ALU instruction=4
Memory access instructions=20% and CPI for Memory instruction=8
Control instructions=15% and CPI for control instruction=2
ICi=instruction count of type i
CPIi=cycle per instruction of type i
IC=total instruction count
n=number of different types of instruction
Fi=Frequency of instruction of type i
Here n=3
Frequency of ALU instructions=65%=0.65 =F1
Frequency of Memory instructions=20%=0.20 =F2
Frequency of Control instructions=15%=0.15 = F3
CPI1=4(For ALU inst.) , CPI2=8(For Memory inst.) , CPI3=2(For Control inst.)
plss like if u like my answer.