Verifying a Small Logic Circuit with Examples
For a combinational circuit with few input bits, exhaustive input enumeration can compare its settled outputs with a specification.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Use a two-bit function
To verify a one-bit XOR made of several gates, test 00, 01, 10, and 11 as input pairs. Expected outputs are zero, one, one, zero. Exclusive-or truth behavior gives the independent reference.
Check a different property separately
A match in each steady-state row establishes the Boolean function on those two inputs. Timing and transient behavior require their own observations. See gate propagation for why settling cannot be read from the truth table alone.[1]
Compare outputs against an independent reference table
A circuit designed to implement two-input XOR should produce one only for mismatched inputs. Build the expected table from that definition, then evaluate the implementation for every two-bit input. A reference table derived by copying the implemented gate expression can repeat the same design error. See XOR and inequality.
Input 00 → 0
Input 01 → 1
Input 10 → 1
Input 11 → 0
Extend verification to reachable states when memory is involved
A sequential circuit needs starting states and input sequences as well as individual combinations. An exhaustive combinational table does not check transition history. Verify reset, cycles and outputs around each transition under the stated timing assumptions.