S3 · Problem set 7
Problem set 7: interfaces, arbitration, codes and the processor
These problems use lessons 36 to 43: valid/ready interfaces and bursts, arbiters, test and reliability, CRCs and error-correcting codes, the RISC-V core, its pipeline and its caches.
Check
Four requesters share a 1.6 GB/s port by weighted round-robin with weights 2, 1, 3 and 2. The third requester goes idle.
(a)
What bandwidth does the first get when all four are busy?
(b)
And with the third idle?
Check
Under fixed priority, three higher requesters ask independently in fractions 0.2, 0.3 and 0.3 of cycles.
(a)
At most what share of cycles can the fourth requester win?
Check
8 masters share a bus by round-robin; each grant moves a 4-beat burst plus 3 cycles of overhead, at 500 MHz.
(a)
What is a master's worst-case wait?
(b)
How long is that?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Memory words hold 64 data bits with SECDED, and bits flip independently with probability 1 × 10⁻⁶ between scrubs.
(a)
How many bits does each stored word have?
(b)
What is the chance a word has an uncorrectable (two or more bit) error?
Check
A link runs at 25 Gb/s and checks frames with a 32-bit CRC, computed by a parallel engine at 200 MHz.
(a)
How many bits per clock must the engine take?
(b)
What fraction of randomly corrupted frames escapes detection?
Check
Encode RISC-V immediates: addi with immediate −10, and a beq whose target is 8 bytes back.
(a)
What value does the 12-bit I-type immediate field hold?
(b)
What value do the 12 bits imm[12:1] of the branch hold?
Check
A pipelined core runs a program with 25% loads (0.3 used at once), 10% stores and 15% branches (0.1 mispredicted, 2 cycles each). Loads and stores miss the data cache 0.05 of the time, stalling 50 cycles.
(a)
What is its CPI?
(b)
What fraction of the time goes to cache misses?
Check
A cache's addresses split into an 18-bit tag, a 6-bit index and a 6-bit offset; it has 8 ways.
(a)
How big is the cache?
(b)
How wide are the addresses?
Check
A core at 1 GHz completes one instruction per cycle; 0.1 of instructions are 4-byte stores, and 35% are loads or stores. Its data cache misses 0.05 of accesses, and 0.5 of evicted lines are dirty.
(a)
What write traffic does a write-through cache send onward?
(b)
What does a write-back cache send, writing back 64-byte dirty lines on eviction?
Check
Each bus transaction costs 4 overhead cycles; bursts carry one beat per cycle.
(a)
How long must bursts be for an efficiency of 0.9?
Check
A memory returns a 4-beat burst 60 cycles after the request; the bus carries one beat per cycle.
(a)
How many bursts must be outstanding to keep the bus busy?
(b)
What bus utilization does one outstanding burst give?
Check
A chip with 100000 flip-flops has 16 scan pins; compression expands them into 50 times as many internal chains. 20000 patterns shift at 50 MHz.
(a)
How long is each internal chain?
(b)
How long does the test take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
An SRAM row interleaves 2 SECDED words of 128 data bits; a strike flips 3 adjacent cells.
(a)
How many errors does the worst-hit word get?
(b)
How many cells does the row hold?
Check
A credit-based link has a 2-cycle credit return and 3 cycles of data latency; the sender must sustain 0.75 of the link's rate.
(a)
How many credits give full rate?
(b)
How many does 0.75 of full rate need?
Check
4 masters share a resource by round-robin with 2-cycle grants; each wants it in a fraction 0.02 of cycles.
(a)
What fraction of the resource's capacity do they demand, if each request needs one 2-cycle grant?
(b)
What is the worst-case wait?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.