How to use it
Pick a gate or circuit, then click the inputs to switch them between 0 and 1. The outputs light up when they are 1, and the matching row of the truth table is highlighted.
The basic gates
- AND outputs 1 only when every input is 1.
- OR outputs 1 when at least one input is 1.
- NOT flips its single input.
- NAND and NOR are AND and OR followed by NOT. Either one alone can build every other gate.
- XOR outputs 1 when the inputs differ; XNOR when they are the same.
Adders
A half adder adds two bits: Sum = A ⊕ B and Carry = A · B. A full adder also takes a carry in, so adders can be chained to add whole numbers: Sum = A ⊕ B ⊕ Cin and Cout = A·B + Cin·(A ⊕ B).
4-to-1 multiplexer
A multiplexer passes one of its data inputs (D0–D3) to the output. The two select lines S1 and S0 form a binary number that chooses which one: 00 selects D0, 01 selects D1, 10 selects D2 and 11 selects D3.