Lab 1.
Logic gates
and theorems.
A 3D digital logic trainer with a real breadboard. Pick TTL chips from the tray, wire their power, switches and LEDs, and test the AND, OR, NOT, NAND, NOR and XOR truth tables, then the absorption theorems and De Morgan’s laws.
Read the concepts first →Your details
Free to use, no sign up. Your name is only printed on your own lab sheet, and your work is saved in this browser so you can continue later. Nothing is sent to a server.
Logic Gates and Boolean Theorems
This virtual lab is a 3D digital logic trainer with a real breadboard. You take TTL chips from the cabinet, push them into the breadboard, wire pin 14 to +5 V and pin 7 to ground, connect the inputs to switches and the outputs to LEDs, and read each truth table from the lights.
The lab tests the six basic gates, AND, OR, NOT, NAND, NOR and XOR, and then uses them to prove Boolean theorems on real wiring: the absorption theorems and De Morgan's laws. Because the simulator follows the chip pins exactly, a missing power wire or a swapped pin behaves just as it would on a real bench.

What you do on this bench
- Place a gate chip and wire its power and ground pins.
- Connect two switches to the inputs of one gate and its output to an LED.
- Fill in the truth tables of AND, OR, NOT, NAND, NOR and XOR.
- Wire both sides of an absorption theorem and compare the two outputs for every input.
- Prove De Morgan's laws by building each side and comparing their truth tables.
On the bench
- Digital logic trainer with 16 toggle switches, 16 LEDs, pulse switches, a clock and a two digit seven segment display
- Full size breadboard with power rails and jumper wires that are wired pin by pin
- Cabinet of TTL chips with real pinouts (7400 series)
- Logic probe, multimeter and a binder of chip data sheets
Free, runs in the browser, no sign up and nothing to install. A computer with a graphics card gives the smoothest 3D view.
Questions students ask
Which chips hold the basic gates?
The 7408 has four AND gates, the 7432 four OR gates, the 7404 six inverters, the 7400 four NAND gates, the 7402 four NOR gates and the 7486 four XOR gates. Each needs +5 V on pin 14 and ground on pin 7.
What does De Morgan's law say?
The complement of a product equals the sum of the complements, and the complement of a sum equals the product of the complements. In symbols, (AB)' = A' + B' and (A + B)' = A'B'.
Why does an unconnected input read as 1?
A TTL input that is left open floats high, so the gate treats it as a logic 1. The simulator copies this, which is why every input should be wired to a switch or a rail.
Read the concepts page for this lab · All Digital Logic Design virtual labs · All articles