S3 Digital design with HDL · Practice
Caches in hardware
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 10 kinds solid
Check
A 64 KB, 16-way cache has 32-byte lines and 40-bit addresses. How many tag bits?
Check
How many index bits does a 32 KB, 8-way cache with 32-byte lines need?
Check
A write-back cache of 16 KB, 8-way, with 32-byte lines and 48-bit addresses keeps a valid and a dirty bit per line. How many SRAM bits does it hold in all?
Check
A miss waits 80 cycles of latency and then moves a 32-byte line over a 16-byte bus, one transfer per cycle. What's the miss penalty?
Check
A cache hits in 2 cycles and misses 0.01 of the time. A miss waits 150 cycles and then moves a 64-byte line over a 16-byte bus. What's the AMAT?
Check
A core at 1 GHz executes one instruction per cycle, 0.08 of them stores of 8 bytes. How much write traffic does a write-through cache send to the next level?
Check
A 32 KB, 8-way cache with 32-byte lines serves 40-bit addresses.
(a)
How many offset bits?
(b)
How many index bits?
(c)
How many tag bits?
Check
Tag bits: 32 KB, 8-way, 64-byte lines, 48-bit addresses?
Check
Miss penalty: 60 cycles latency, 64-byte line, 32-byte bus?
Check
AMAT: hit 1, miss rate 0.02, latency 100, 64-byte line, 8-byte bus?
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 S3