Reading a Logic Gate's Truth Table
A gate truth table gives the steady-state output for each possible combination of Boolean input levels.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Work an AND gate
For two inputs there are four rows. AND is high only when both inputs are high. Feeding it (1,0) yields zero. Bitwise AND applies that same Boolean rule at many bit positions in parallel.
Read the table as a test plan
Verify the output for both mixed cases as well as all low and all high. A mistaken gate that forwards its first input agrees with two or more examples. Test cases that distinguish outcomes show why the full table is useful.[1]
Keep the input ordering fixed through a four-row test
A two-input gate accepts four input assignments. An implication gate for A implies B is false only when A is high and B is low. Swapping the physical inputs changes which row is false even though there is still one false row. See implication and its converse.
A B A implies B
0 0 1
0 1 1
1 0 0
1 1 1
Use asymmetric cases to check wiring
A truth table for AND cannot reveal a swap of its two inputs because AND is symmetric. A gate or composed rule with asymmetric inputs can. Test all rows for a small network and state the polarity assumed by each column.