S3 Digital design with HDL · Practice
Problem set 5: floating point, memory arrays, latch timing, formal checks and HLS
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.
Check
A reduction tree combines N = 100 values of 16 bits with 4-input adders, registered after each level.
(a)
How many adders does it need?
(b)
What is its latency?
(c)
How wide must the final sum be?
Check
A multiply-accumulate unit sums 1000 products of a 12-bit and an 8-bit signed value.
(a)
How wide is each product?
(b)
How wide must the accumulator be to never overflow?
Check
A binary floating-point format has 5 exponent bits (biased) and 7 fraction bits, with IEEE-style normal numbers.
(a)
What is its largest finite value?
(b)
What is its smallest normal value?
(c)
What is the spacing between 1 and the next number?
Check
A floating-point adder subtracts 1.5 × 2^2 from 1.25 × 2^7.
(a)
How far is the smaller operand shifted?
(b)
What significand does the subtraction give before normalization?
(c)
What value is the result?
Check
An SRAM column of 1024 cells (0.15 fF each, 30 fF of wire, 30 µA of cell current, 100 mV to sense) can be split into banks; each level of bank multiplexing adds 200 ps.
(a)
How long does a read take unbanked?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
And split into 8 banks?
Check
A 16 KB SRAM uses 256 × 512 subarrays, read in 64-bit words.
(a)
How many address bits choose the subarray?
(b)
How many choose the row?
(c)
How many drive the column multiplexer?
Check
A register-file cell is 3 by 4 tracks before ports, plus one track each way per port; it grows from 4 to 12 ports.
(a)
By what factor does each cell's area grow?
Check
A two-phase latch pipeline alternates blocks of 0.9 ns and 0.3 ns; latches take 60 ps from D to Q and need 50 ps of setup.
(a)
What is the shortest clock period?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What would a flip-flop pipeline with one stage per block need, with 100 ps clock-to-Q and 30 ps setup?
(c)
How much does the slow block borrow in the latch design at its shortest period?
Check
A pulsed-latch design has 50 ps pulses, 15 ps hold and 40 ps contamination clock-to-Q. Its shortest path is 120 ps.
(a)
What is its hold slack?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
Bounded model checking unrolls a block with 500 flip-flops and 20000 gates to depth 80.
(a)
About how many variables does the solver see?
(b)
About how many clauses, at three per gate per cycle?
Check
A bug needs one specific value on a 20-bit field; random tests run at 1000000 per second.
(a)
How many tests give 99% confidence of hitting it?
(b)
How long does that take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
An HLS loop of 512 iterations, 6 cycles deep, reads an array 6 times per iteration from a dual-port memory and has a loop-carried chain of 5 cycles at distance 1.
(a)
What initiation interval can it reach?
(b)
How many cycles does the loop take?
Check
An HLS loop of 1024 iterations, 12 cycles deep, is unrolled by 4 and pipelined at II = 1 on a 400 MHz clock, with the arrays partitioned to match.
(a)
How many cycles does it take?
(b)
How long is that?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
(c)
How many array partitions must each array have for one element per copy per cycle, with single-port memories?
Check
A pipelined CORDIC must compute sines and cosines to 16 bits, one result per cycle at 200 MHz, with one iteration per stage (about one bit per iteration).
(a)
How many stages does it need, if n iterations give an error under ?
(b)
What is its latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A floating-point multiplier for 24-bit significands is built from 18 × 18-bit hard multipliers tiled over the partial products, and it must deliver 1 result(s) per cycle.
(a)
How many hard multipliers does one significand product need?
(b)
How many in all?
Check
A 5 × 5 filter streams 1280 × 720 video with 10-bit pixels at 60 frames per second.
(a)
How much line-buffer memory does it need?
(b)
How many megapixels per second must it process, ignoring blanking?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
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