Skip to content
Tactiverge
DC-05○ Level 3 · InnovatorComputer Architecture and Digital SystemsProgramming and Computational EngineeringEngineering Mathematics

The 1-nanosecond adder

Can you add two 32-bit numbers in under a nanosecond without wasting silicon?

The brief

Choose the carry-lookahead block size and the cell library for a 32-bit adder so the worst-case delay is at most 1000 ps and no gate has more than 9 inputs, using as little area as possible.

You start from

A 32-bit ripple-carry adder in standard cells: 160 gates, but the carry takes 65 gate delays (3.25 ns) to ripple through.

Constraints

  • Worst-case delay ≤ 1000 ps

    The adder must finish inside a 1 GHz clock cycle.

  • Widest gate ≤ 9 inputs

    Very wide gates are slow and are not in the cell library.

  • Wrong answers ≤ 0

    An adder that is fast but wrong is not an adder.

Worst case counts: every design runs on 2 test seeds and each constraint is judged on the worst one.

The lab

Runs in your browser · Adder architecture: ripple carry or carry lookahead

1 · Change the design

0–3

Bigger lookahead blocks shorten the carry chain but need more, and wider, gates.

0–1

Fast cells cut every gate delay to 60 % but double the area.

Fixed by the brief: Adder width = 32 bits; Delay per gate = 50 ps; Random test additions = 64.

Live check against the constraints

  • Worst-case delay✗ miss · 3250 ≤ 1000 ps
  • Widest gate✓ pass · 2 ≤ 9 inputs
  • Wrong answers✓ pass · 0 ≤ 0
Record a design to start your trade-off plot: Area (standard-cell units) against Worst-case delay.

3 · Your attempts

No designs recorded yet. Run the starting design first: it is your baseline.

What does your chosen design give up compared with your other valid designs, and why is that the right trade? Quote numbers.

Name two assumptions of the model that could change your decision in the real world, and how you would test one.

6 · Submit

Choose a design in the attempts table. Saving needs an account; every attempt is re-run on the server and your work stays private to you.

Experiments to try

  1. 1. Predict, then run

    Before each run, predict the gate count with 3n + n(k + 3)/2 and the critical path with 2G + 2. Did the gate-level simulation agree?

  2. 2. Faster cells or smarter logic?

    Compare making ripple carry fast with switching to 4-bit lookahead. Which buys more speed per unit of area?

The trade-offs

  • Smarter logic (lookahead) usually beats faster cells for speed per unit of area.
  • The unit-gate model flatters very wide gates; real 9-input gates would be slower.

What to submit

  • Your chosen design (one of your attempts; the server re-runs it).
  • Every attempt you made, so the server can check your exploration.
  • A trade-off justification: what your design gives up and why (100–300 words).
  • A technical reflection: two model assumptions that could change your decision.

Rubric

  • Meets every constraintObjective · re-checked on the server

    The submitted design meets every constraint when the server re-runs the model on every challenge seed.

    Engineering design

  • Explored the design spaceObjective · re-checked on the server

    At least five distinct designs were tried, so the choice is informed rather than lucky.

    Experimental reasoning

  • Found more than one valid designObjective · re-checked on the server

    At least two distinct designs meet every constraint, so there is a real choice to justify.

    Engineering design

  • Stretch: 600 psObjective · re-checked on the server

    The chosen design meets every constraint in at most 600 ps.

    Mathematical modelling

  • Justifies the trade-offNeeds a qualified reviewer

    Explains, with numbers from the attempts, what the chosen design gives up compared with the other valid designs, and why that is the right trade for the stated user.

    Engineering design

  • Knows the model's limitsNeeds a qualified reviewer

    Names at least two assumptions of the model that could change the decision in the real world, and how one could be tested.

    Conceptual understanding

  • Communicates clearlyNeeds a qualified reviewer

    A stranger could repeat the reasoning from the write-up: units on every number, one idea per sentence, the decision stated first.

    Independent inquiry

Lessons that help

The model

Adder architecture: ripple carry or carry lookahead: a simplified educational model, not a digital twin.

  • Every gate (AND, OR, XOR of any width) has the same delay: the unit-gate model.
  • Wires are free: no wire delay, no fan-out loading.
  • Carry-in to bit 0 is a constant 0, available at time 0.
  • Blocks ripple into each other; there is no second level of lookahead.
  • Fast cells are modelled as 0.6 × the delay and 2 × the area of standard cells (illustrative ratio).

Open it on the full Experiment Bench · Silicon Studio

Concepts

Part of Build a Computer.

Content status: technically checked (automated checks only). Not yet reviewed by an educator.