S3 · Problem set 2
Problem set 2: adders, multipliers, number formats and memories
These problems cover lessons 8 to 13: adder architectures and overflow, multiplier reduction and division, fixed- and floating-point formats, floating-point units, memories and FIFOs, and SRAM arrays. Dadda heights: 2, 3, 4, 6, 9, 13, 19, 28, 42, 63.
Check
A 32-bit adder with 25 ps per level.
(a)
Ripple-carry delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
Kogge–Stone delay (prefix levels plus 2)?
(c)
Kogge–Stone prefix cells?
Check
A carry-select adder of 32 bits in 4 equal blocks, against Brent–Kung.
(a)
Carry-select delay, in carry delays?
(b)
Brent–Kung prefix levels?
(c)
Brent–Kung prefix cells?
Check
A 16 × 16 multiplier.
(a)
Partial-product bits?
(b)
Product width?
(c)
Dadda stages after radix-4 Booth recoding of the 16-bit multiplier?
Check
Division: Newton–Raphson from a 4-bit seed to 24 bits, or a restoring divider for 64 bits at 500 MHz.
(a)
Newton–Raphson iterations?
(b)
Restoring divider time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A Q1.11 sample times a Q2.17 coefficient, summed over 16 taps.
(a)
Exact product width?
(b)
Accumulator width with guard bits?
Check
Formats: signed Q1.9, and an IEEE single with exponent field 133 and fraction 0.5.
(a)
Q1.9 resolution?
(b)
The single's value?
(c)
Its ULP?
Check
An 8-bit two's complement adder with saturation adds 70 and 60.
(a)
Largest representable value?
(b)
The sum with saturation?
Check
A burst of 128 words at 100 MHz into a FIFO read at 90 MHz.
(a)
Depth needed?
(b)
Time to drain afterward?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A 1024 × 16 memory.
(a)
Address bits?
(b)
32 Kb block RAMs needed?
(c)
Pointer bits if used as a FIFO?
Check
Write the two's complement overflow flag from the sign bits A, B of the addends and S of the sum.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A filter accumulates 8 products, each Q1.23 × Q1.23.
(a)
Accumulator bits to never overflow?
(b)
SQNR if the output is rounded back to Q1.23?
Check
13 rows of partial products.
(a)
Dadda stages?
(b)
Stages for a linear array?
Check
A binary floating-point format has 8 exponent bits and 7 fraction bits.
(a)
What is its exponent bias?
(b)
What is its smallest normal value?
(c)
What is its unit roundoff?
Check
A floating-point adder aligns 24-bit significands, keeping guard, round and sticky bits.
(a)
How wide is the aligned significand?
(b)
How many levels does a barrel shifter for shifts up to p + 2 need?
Check
An SRAM bitline serves 256 cells of 0.15 fF plus 40 fF of wire, with 25 µA of cell current; the sense amplifier needs 80 mV.
(a)
How long does a read take to develop?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How much energy do 64 such bitlines take per read at 1 V?
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
14 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.