S334 of 55
0 XP
  1. Hook
  2. Problems

S3 · Problem set 5

Problem set 5: floating point, memory arrays, latch timing, formal checks and HLS

These problems use lessons 6, 10, 12, 16, 25, 32 and 33: parameterized structures, floating-point units and formats, SRAM arrays and register files, latch-based timing, formal verification, streaming image pipelines and high-level synthesis. They mix the new structures with the timing and cost reasoning of the earlier lessons.

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?

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

16 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.