D13 Final capstone · Practice
A computer of your own: the 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
The word DEADBEEF is stored at address A in little-endian memory. What byte is at A + 0?
Check
A 12-bit immediate field holds 800. What value does the instruction use?
Check
A single-cycle core at 10 MHz runs a program of 2339 instructions. 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.
Check
A multicycle RISC-V core takes 4 cycles for ALU instructions, 5 for loads and 3 for branches and stores. A program is 50% ALU, 20% loads and the rest branches and stores, and runs at 100 MHz.
(a)
What is the average CPI?
(b)
How many million instructions per second is that?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A program runs 1000 instructions at CPI 1.2 on a 50 MHz core. 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
Byte 0 of CAFEF00D, little-endian?
Check
Sign-extend the 12-bit field 400?
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 D13