![]() | ![]() |
DescriptionA demonstration of the basic logic gates.
Click the input switches to toggle the corresponding input value
between 0 and 1, and watch the resulting behaviour.
You can also use shift+click to toggle the input value between
the states 0, 1, Z (tri-state, not driven) and X (undefined).
The default input values for each are chosen so that the first mouse-click
already changes the output value.
The left column includes the non-inverting gates ('positive logic'), namely the one-input buffer, the two-input AND gate, and the two-input OR gate.
The right column shows the inverting gates: inverter, NAND-gate, and NOR gate.
Run the applet | Run the editor (via Webstart)