C8 Computer organization · Practice
The single-cycle processor
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Check
A single-cycle processor has = 30, memory reads of 150, a register-file read of 120, an ALU of 180, a mux of 20 and register-file setup of 40 (all ps).
(a)
What is the minimum clock period?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What is the highest clock frequency?
Check
A single-cycle processor's clock period is 850 ps, set by lw, whose path includes a 150 ps data-memory read.
(a)
How long do 50 million instructions take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
What percentage of each cycle does an add, which skips the data memory, spend idle?
Check
A designer replaces the 250 ps data memory of a 700 ps single-cycle processor with one 50 ps faster.
(a)
What is the new clock period, if lw is still the slowest?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
How many times faster does every program run?
Check
A multi-cycle processor clocks at the memory's 200 ps plus 60 ps of overhead. Loads (25%) take 5 cycles, stores (15%) 4, branches (10%) 3 and everything else 4.
(a)
What's its CPI?
(b)
What's its average time per instruction?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A single-cycle processor has = 30 ps, memories of 150 ps, a register-file read of 120 ps, an ALU of 180 ps, a multiplexer of 25 ps and a register-file setup of 40 ps.
(a)
What's the clock period, set by a load?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What share of the cycle does an add leave idle?
Check
= 30, memories 180, register read 110, ALU 150, mux 25, register setup 50 (ps): what is the single-cycle clock period?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
What clock frequency does an 800 ps period give?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
How long do 2 million instructions take on a single-cycle processor with a 600 ps clock?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in C8