PhDino scholar
Logic Bench: Logic Gate Simulator with Truth Table and K-map

Logic Bench: Logic Gate Simulator with Truth Table and K-map

A small workbench for digital logic. Add gates, wire them up by clicking an output and then the input it should feed, and flip the inputs to watch the signals move: bright wires carry a 1, dim ones a 0, and amber ones are not connected to anything yet. Up to four inputs drive one output lamp.

Everything you would otherwise work out on paper follows the circuit as you build it: the full truth table, the Karnaugh map in Gray-code order, and the simplest sum-of-products expression, found with the Quine–McCluskey method. The row for the inputs you have set is highlighted in both tables. Copy link saves the circuit, so a finished design can be sent to someone or embedded on a course page.

A=1B=0C=0AND1OR1

Click an output pin, then an input pin to wire them. Click a wired input to free it. Drag gates to move them. Click A, B… to flip them.

Truth table
ABCY
0001
0010
0101
0110
1001
1010
1101
1111
Karnaugh map
A\BC00011110
01001
11011
Simplest form
Y = AB + C'

The fewest product terms that give this table. A' means NOT A.

The other accessories

  • Constants: Physical constants: the CODATA 2022 values from NIST
  • Units: Convert a value between units
  • Plot: Graph a function of x
  • Numerical Lab: Integrate, differentiate and solve ODEs, with the working shown
  • Materials: Strength and stiffness of common materials, and steel W-sections