---
title: "Problem set 6: flows, DSP, interfaces and test"
heading: "Problem set 6: the ASIC flow, DSP hardware, interfaces, test and reliability"
eyebrow: S3 · Problem set 6
type: problems
---

::: hook
These problems cover lessons 30 to 39: die cost and yield, constraints and utilization, FIR folding and bit growth, CIC and CORDIC, high-level synthesis, bus bandwidth and flow control, arbitration, scan test time, defect level, ECC and redundancy.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 60 | 250; D = 0.15 | 0.4; W = 6000 | 16000

## A {A} mm² die on 300 mm wafers costing {W} dollars, with {D} defects per cm².

::: part
answer: pi*150^2/A - pi*300/sqrt(2*A)
tolerance: 1%

### Dies per wafer?

::: misses
- [any] Area ratio less the edge loss.
:::
:::

::: part
answer: 100*exp(-D*A/100)
unit: %
tolerance: 0.5%

### Poisson yield?

::: misses
- [any] $e^{-D_0A}$, A in cm².
:::
:::

::: part
answer: W/((pi*150^2/A - pi*300/sqrt(2*A))*exp(-D*A/100))
tolerance: 1%

### Cost per good die, in dollars?

::: misses
- [any] Wafer cost over good dies.
:::
:::
:::

::: check
kind: parts
given: N = 0.5 | 4; a = 2 | 12; f = 25 | 90; C = 1.2 | 4; u = 0.65 | 0.8

## An ASIC with {N} million dollars of NRE at {a} dollars a unit against a {f}-dollar FPGA; synthesis reports {C} mm² of cells at {u} utilization.

::: part
answer: N*1e6/(f - a)
tolerance: 0.5%

### Break-even volume?

::: misses
- [any] NRE over the unit savings.
:::
:::

::: part
answer: C/u
unit: mm²
tolerance: 0.5%

### Core area?

::: misses
- [any] Cells over utilization.
:::
:::
:::

::: check
kind: parts
given: T = 1.25 | 2; i = 0.25 | 0.6; o = 0.15 | 0.4; s = 0.06; c = 0.1

## A {T} ns clock: an input arrives {i} ns after the edge; an output must be ready {o} ns before the next edge. Flip-flops have {s} ns setup and {c} ns clock-to-Q.

::: part
answer: T - i - s
unit: ns
tolerance: 0.5%

### Logic time on the input path?

::: misses
- [any] $T - t_\text{in} - t_\text{su}$.
:::
:::

::: part
answer: T - o - c
unit: ns
tolerance: 0.5%

### Logic time on the output path?

::: misses
- [any] $T - t_\text{out} - t_{cq}$.
:::
:::
:::

::: check
kind: parts
given: N = 63 | 127; f = 20 | 80; c = 250 | 600; x = 14 | 16; h = 16 | 18

## A symmetric {N}-tap FIR at {f} MHz on a {c} MHz clock, with {x}-bit data and {h}-bit coefficients.

::: part
answer: ceil(ceil(N/2 - 0.0001)*f/c - 0.0001)
tolerance: 0

### Time-shared multipliers, using the symmetry?

::: misses
- [any] $\lceil \lceil N/2 \rceil f_s/f_\text{clk} \rceil$.
:::
:::

::: part
answer: x + h + ceil(log(N - 0.5)/log(2))
tolerance: 0

### Accumulator width (ignoring the pre-adder bit)?

::: misses
- [any] $B_x + B_h + \lceil \log_2N \rceil$.
:::
:::

::: part
answer: (N - 1)/2/f*1000
unit: ns
tolerance: 0.5%

### Delay?

::: misses
- [any] $(N - 1)/2$ samples.
:::
:::
:::

::: check
kind: parts
given: M = 3 | 5; R = 16 | 125; b = 12 | 16; f = 20 | 100

## A CIC decimator: {M} stages, R = {R}, D = 1, {b}-bit input at {f} MHz.

::: part
answer: b + ceil(M*log(R)/log(2) - 0.0001)
tolerance: 0

### Register width?

::: misses
- [any] $B + \lceil M\log_2R \rceil$.
:::
:::

::: part
answer: f*1000/R
unit: kHz
tolerance: 0.5%

### First null (and output rate)?

::: misses
- [any] $f_s/R$.
:::
:::
:::

::: check
kind: parts
given: n = 10 | 14 | 18; N = 16 | 48

## A CORDIC with {n} iterations, and a {N}-tap moving average.

::: part
answer: atan(2^(1 - n))*180/pi
unit: °
tolerance: 0.5%

### Smallest micro-rotation, in degrees?

::: misses
- [any] $\arctan 2^{-(n-1)}$.
:::
:::

::: part
answer: 1/N
tolerance: 0.5%

### Moving average's first null, in cycles per sample?

::: misses
- [any] 1/N.
:::
:::
:::

::: check
kind: parts
given: w = 64 | 128; f = 200 | 333; B = 8 | 32; o = 3 | 6

## A {w}-bit bus at {f} MHz moving {B}-beat bursts with {o} overhead cycles each.

::: part
answer: w/8*f*1e6/1e9
unit: GB/s
tolerance: 0.5%

### Peak bandwidth?

::: misses
- [any] Bytes times clock.
:::
:::

::: part
answer: w/8*f*1e6/1e9*B/(B + o)
unit: GB/s
tolerance: 0.5%

### Sustained bandwidth?

::: misses
- [any] Peak times $B/(B + o)$.
:::
:::
:::

::: check
kind: parts
given: r = 3 | 6; d = 5 | 12; c = 4 | 8; g = 8 | 16; n = 2 | 8

## A credit-based link with a {r}-cycle credit return, {d} cycles of data latency and {c} credits; and a {n}-lane serial link at {g} Gb/s per lane with 128b/130b coding.

::: part
answer: 100*c/(r + d)
unit: %
tolerance: 0.5%

### Fraction of full rate the credit link sustains?

::: misses
- [any] Credits over the round trip.
:::
:::

::: part
answer: g*n*128/130
unit: Gb/s
tolerance: 0.5%

### Serial payload rate?

::: misses
- [any] Lanes times rate times 128/130.
:::
:::
:::

::: check
kind: parts
given: F = 120000 | 900000; C = 24 | 200; P = 3000 | 15000; f = 50 | 200

## Scan test: {F} flip-flops in {C} chains, {P} patterns, {f} MHz shift clock.

::: part
answer: ceil(F/C - 0.0001)
tolerance: 0

### Chain length?

::: misses
- [any] $\lceil F/C \rceil$.
:::
:::

::: part
answer: P*(ceil(F/C - 0.0001) + 1)/(f*1e6)
unit: s
tolerance: 0.5%

### Test time?

::: misses
- [any] $P(L + 1)/f$.
:::
:::
:::

::: check
kind: parts
given: Y = 0.7 | 0.92; T = 0.97 | 0.995

## Yield {Y} and fault coverage {T}.

::: part
answer: 1e6*(1 - Y^(1 - T))
unit: ppm
tolerance: 0.5%

### Defect level?

::: misses
- [any] $1 - Y^{1-T}$.
:::
:::

::: part
answer: 1e6*ln(1 - 1e-4)/ln(Y)
unit: ppm
tolerance: 0.5%

### For a defect level of 100 ppm, how large may the uncovered fraction 1 − T be?

::: misses
- [any] Solve $1 - Y^{1-T} = 10^{-4}$ for $1 - T$.
:::
:::
:::

::: check
kind: parts
given: m = 16 | 32 | 128; R = 0.8 | 0.97

## A memory word of {m} data bits, and a TMR system of three copies each working with probability {R}.

::: part
answer: 2 + step(m - 0.5) + step(m - 1.5) + step(m - 4.5) + step(m - 11.5) + step(m - 26.5) + step(m - 57.5) + step(m - 120.5)
tolerance: 0

### SECDED check bits?

::: misses
- [any] Smallest r with $2^r \ge m + r + 1$, plus one.
:::
:::

::: part
answer: 3*R^2 - 2*R^3
tolerance: 0.01%

### TMR reliability?

::: misses
- [any] $3R^2 - 2R^3$.
:::
:::
:::

::: check
kind: parts
given: M = 8 | 64; r = 300 | 1500; N = 500 | 20000; n = 12 | 24

## A fleet of {N} chips, each with {M} Mbit of SRAM at {r} FIT per Mbit, and an {n}-bit BIST signature.

::: part
answer: 1e9/(M*r*N)
unit: h
tolerance: 0.5%

### Fleet mean time between upsets?

::: misses
- [any] $10^9$ over the total FIT.
:::
:::

::: part
answer: 2^(-n)
tolerance: 0.5%

### Aliasing probability?

::: misses
- [any] $2^{-n}$.
:::
:::
:::

::: check
kind: parts
given: r = 3 | 5 | 8; L = 4 | 6; d = 1 | 2; N = 256 | 1024; D = 7 | 11

## An HLS loop of {N} iterations, {D} cycles deep, reads {r} array elements per iteration from a dual-port memory and carries a {L}-cycle dependence to an iteration {d} later.

::: part
answer: ceil(r/2) - (ceil(r/2) - ceil(L/d))*step(ceil(L/d) - ceil(r/2))
tolerance: 0

### What initiation interval can it reach?

::: misses
- [any] The larger of the port bound and the recurrence bound.
:::
:::

::: part
answer: (N - 1)*(ceil(r/2) - (ceil(r/2) - ceil(L/d))*step(ceil(L/d) - ceil(r/2))) + D
unit: cycles
tolerance: 0

### How many cycles does it take?

::: misses
- [any] $(N - 1)\text{II} + D$.
:::
:::
:::

::: check
kind: parts
given: N = 4 | 8 | 12; T = 2 | 8; f = 200 | 500

## {N} DMA engines share a memory port by round-robin; each grant lasts {T} cycles at {f} MHz.

::: part
answer: (N - 1)*T
unit: cycles
tolerance: 0

### What is the worst-case wait?

::: misses
- [any] $(N - 1)T$.
:::
:::

::: part
answer: (N - 1)*T*1000/f
unit: ns
tolerance: 0.5%

### In time?

::: misses
- [any] Cycles over clock.
:::
:::
:::

::: check
kind: parts
given: m = 16 | 64 | 256

## A buffer stores {m}-bit words with SECDED.

::: part
answer: ceil(log(m + 1 + ceil(log(m + 1)/log(2)))/log(2)) + 1
unit: bits
tolerance: 0

### How many check bits per word?

::: misses
- [any] Smallest r with $2^r \ge m + r + 1$, plus one.
:::
:::
:::
:::
