- #1
olen501
- 6
- 0
Homework Statement
This is the problem:
Consider a CPU that has a clock cycle of 20 nanoseconds (ns). It is possible to remove some instructions from its assembly language instruction set to form a second CPU and reduce its clock cycle to 18 ns. These instructions comprise 4 percent of all code in a typical assembly language program, and each of these removed instructions would have to be replaced by 3 instructions from the reduced set. Assume that every instruction requires the same number of clock cycles, c, to complete (i.e., to be fetched, decoded, and executed with results written back).
(a.)
Which CPU has the better performance?
(b.)
What percentage of typical code would the removed instructions have to comprise in order for the two CPUs to have the same performance?
(c.)
For what clock cycle for the original CPU would the two CPUs have the same performance?
Homework Equations
T = (N*S)/R
N = actual number of instructions
executed in program
S = average number of cycles for
instructions in program
R = clock rate
T = program execution time
The Attempt at a Solution
I actually don't need help solving the problem (not yet anyways).
My problem is that to me it seems this problem is worded kind of
poorly and I don't really understand what it's trying to say about
the new instructions comprising 4 percent of the code and the
removed instructions being replaced by 3 instructions from the
reduced set. Can someone explain this problem to me?