1. A microprocessor company manufactures 2 CPUs that support the same ISA. One is
(10 points)
used in the automotive industry and a cheaper one used in toys. Answer the following questions
assuming that the CPUs run at a frequency of 1GHz:
a) How long it takes to execute of a program that has 1000 instructions on the more expensive CPU
where the datapath is implemented using a 20-stage ideal pipeline (no hazards at all).
b) To create a cheaper version of the CPU while supporting the same ISA, the manufacturer eliminated
the pipeline but implemented a multicycle datapath (10 stages).
How long will a program of 1000 instructions take on this CPU given that it has the following
percentages of the instructions with different number of cycles: 10% 6 cycles, 20% 7 cycles, 40% 8
cycles, 20% 9 cycles, 10% 10 cycles.