D13 Final capstone · Practice
A computer of your own: memory-mapped I/O
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 store goes to the address 40000008, whose low 12 bits are under 0x800. What upper value does the lui that builds it load?
Check
A device occupies a block of bytes, aligned to its size. How many of the 32 address bits must the decoder compare to select it?
Check
A program's timer reads show 1670 cycles of a 10 MHz clock. How long did the code take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A peripheral's registers start at 40000000, one 32-bit register every 4 bytes. What is the address of register 1?
Check
To set bit 5 of a control register with a read-modify-write, what mask do you OR in?
Check
lui value for 4000000C?
Check
Decoder bits for a -byte block (k = 6)?
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