C8 Computer organization · Practice
Writes, coherence and DMA
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 loop stores 4096 words (4 bytes each) into a fresh array, once each, with 32-byte lines.
(a)
How many bytes reach memory through a write-through, no-allocate cache?
(b)
And through a write-back, write-allocate cache?
Check
A program is 20% stores; memory accepts one write every 8 cycles through a write buffer.
(a)
How many stores per cycle would it issue at one instruction a cycle?
(b)
What's the lowest CPI the memory allows once the buffer is full?
Check
A write-back cache misses 5% of the time with a 50-cycle penalty, and 20% of evicted lines are dirty. Hits take 1 cycle.
(a)
What's the average miss penalty without a write buffer?
(b)
What's the AMAT?
Check
A DMA controller fills a 1500-byte receive buffer, and the cache has 32-byte lines.
(a)
How many lines must be invalidated if the buffer starts on a line boundary?
(b)
And if it starts 20 bytes into a line?
Check
4000 words stored once through a write-back, write-allocate cache. Bytes moved?
Check
12% stores, 10 cycles per memory write. Lowest CPI once the buffer fills?
Check
How many 32-byte lines does an aligned 512-byte DMA buffer cover?
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