Skip to content
Tactiverge

Olympiad · Practice · public practice problem

Parity checker from NAND gates only

Difficulty 4 of 510 points in 5 partsSuggested time ~20 min (never timed here)

The problem

A factory only stocks 2-input NAND gates, each with a propagation delay of 3 ns. You need XOR, built as N1 = NAND(A, B), N2 = NAND(A, N1), N3 = NAND(B, N1), Y = NAND(N2, N3). A 4-bit parity checker is then made from three such XORs in a balanced tree: XOR(XOR(a, b), XOR(c, d)).

  1. Part (a) · 1 point

    How many NAND gates does one XOR use?

    (pure number)Tolerance: exact

  2. Part (b) · 3 points

    Worst-case delay through one XOR (the longest chain of gates from an input to Y)?

    nsTolerance: ±0.1 ns

  3. Part (c) · 2 points

    How many NAND gates does the 4-bit parity checker use?

    (pure number)Tolerance: exact

  4. Part (d) · 3 points

    Worst-case delay of the 4-bit parity checker?

    nsTolerance: ±0.1 ns

  5. Part (e) · 1 point

    If the three XORs were chained instead, XOR(XOR(XOR(a, b), c), d), the worst-case delay would be…

Checked so far: 0 of 10 automatically marked points. Nothing is saved.

Stuck? Hints, then the worked solution

Written with AI assistance. Review status: technically-checked (answers recomputed independently with units verified by automated tests); not yet reviewed by an educator or judge.