C8 Computer organization · Practice
Fetch, decode, execute
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
The PC holds 0x0120. With no branches taken, what does it hold after 2 more instructions?
Check
A processor has 16 registers. How many bits does an instruction need to name one of them?
Check
A single-cycle processor's slowest instruction takes 2.5 ns to settle from one clock edge to the next. What's the fastest clock it can use?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A single-cycle processor (CPI = 1) at 50 MHz runs a program of 500 thousand instructions. How long does it take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A multi-cycle processor at 50 MHz takes 6 cycles for loads (30% of instructions) and 3 for the rest, running 5 million instructions.
(a)
What's its average CPI?
(b)
How long does the program take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
The PC is 0x00AC. After 4 instructions with no branch, the PC?
Check
How many address bits does a memory of 4 KiB (1 KiB = 1024 bytes) need?
Check
A single-cycle CPU's longest path is 2 ns. Fastest clock?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
40 thousand instructions at a CPI of 1.5 on a 50 MHz clock. Run time?
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