D10 Digital design, Verilog and FPGAs · Practice
Capstone
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
Which register does the instruction 00530333 write? (rd is bits 11:7.)
Check
A program spends 2 instructions setting up, runs a 3-instruction loop 10 times and then 6 more instructions. How many instructions does it execute?
Check
A single-cycle core runs 1000 instructions at 25 MHz. How long does it take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A single-cycle lw takes 0.2 ns to fetch, 0.2 ns to decode, 0.8 ns for registers and the ALU, 2 ns of data memory, 0.3 ns of multiplexing and 0.2 ns to write back. What's the fastest clock?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A single-cycle core runs 100 instructions at 25 MHz.
(a)
How long does it take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
(b)
A pipelined version clocks 1.5 times faster but needs a CPI of 1.3. How long does it take?
Check
A loop body of 3 instructions runs 4 times, after 3 setup instructions and before 6 more.
(a)
How many instructions run in all?
(b)
What share is the loop?
Check
Run time: 10 instructions at 10 MHz, CPI 1?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
rs1 (bits 19:15) of 00530333?
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 D10