C8 Computer organization · Practice
The multi-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.
0 solved
0 in a row
0 of 7 kinds solid
Check
A program is 25% loads, 8% stores and 20% branches; the rest are R-type. The multi-cycle clock is 320 ps.
(a)
What's the CPI?
(b)
What's the average time per instruction?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A multi-cycle datapath has = 30 ps, multiplexers of 25 ps, an ALU of 250 ps, a memory of 200 ps and a setup time of 40 ps.
(a)
What's the clock period?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
How long does a load take?
Check
A loop body has 1 loads, 5 R-type instructions and one branch, and runs 100 times.
(a)
How many cycles does it take on the multi-cycle processor?
(b)
And on the single-cycle one?
Check
Adding instructions grows the control state machine to 13 states.
(a)
How many flip-flops does a binary state encoding need?
(b)
And a one-hot encoding?
Check
20% loads (5 cycles), 10% branches (3) and the rest 4 cycles. CPI?
Check
An instruction takes 4 cycles of 250 ps. How long is that?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
50 passes of 1 loads, 4 R-type instructions and a branch. Multi-cycle cycles?
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