Category: Logic and Proof Level: 201
Y = (A ∧ B) ∨ ¬ C
A logic circuit computes a truth value from its inputs. Signals flow left to right, and each gate applies AND, OR, or NOT to the values that reach it.
Signals enter on the left and flow right. A and B feed an AND gate, C feeds a NOT gate, and both results feed an OR gate that produces Y.
Y = (A ∧ B) ∨ ¬ C
Pick one input row: A = 1, B = 0, C = 0. Green wires carry 1 (true) and red wires carry 0 (false).
A = 1, B = 0, C = 0
AND outputs 1 only when both inputs are 1. Here B is 0, so the AND output is 0.
A ∧ B = 1 ∧ 0 = 0
NOT flips its input. C is 0, so the NOT output is 1.
¬ C = ¬ 0 = 1
OR outputs 1 when at least one input is 1. The NOT branch carries a 1, so Y is 1 even though the AND branch is 0.
Y = 0 ∨ 1 = 1
Repeat the same flow for all eight input rows to get the truth table of the circuit. The row traced above is outlined.
23 = 8 rows
cd svg-generator python3 -m svgmath render logic-gates --out /tmp/logic-gates
Source: svgmath/diagrams/logic.py