Question #177043

1. a) A program has 200 instructions and runs in a processor in 5 ns. If each of the instructions take

10 clock cycles, what is the value of Clock Cycle Time?

b)A program has 125 instructions and total clock cycles consumed by the program is 31.25 ms.

What is the value of cock per instruction?


Expert's answer

Given,

Number of instruction = 200

Processor's running time = 5ns

Clock cycle = 10

Clock cycle time = 1/clock rate

=5ns10=0.5ns=\frac{5ns}{10}=0.5ns

b)

CPU clock cycle = instruction count×\times CPI

CPI=CPU clock cycleInstruction count\Rightarrow CPI=\frac{CPU \ clock \ cycle}{Instruction \ count}


CPI=31.25ns125ns\Rightarrow CPI = \frac{31.25ns}{125}ns

=0.25ns=0.25ns


LATEST TUTORIALS
APPROVED BY CLIENTS