Lab 2.
NAND and NOR
build everything.
Make AND, OR and NOT from nothing but NAND gates, then from nothing but NOR gates, on a 3D digital logic trainer with a real breadboard. Decode the alternate gate symbols by building them with inverters and reading their truth tables.
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.
NAND and NOR as Universal Gates
This virtual lab shows why NAND and NOR are called universal gates. On a 3D digital logic trainer with a real breadboard you build NOT, AND and OR from nothing but NAND gates, then build the same three gates again from nothing but NOR gates, and check every truth table on the LEDs.
The second part decodes the alternate gate symbols, the bubbled input versions of AND and OR that appear in real schematics. You build each one from inverters and a basic gate and see that a NAND is the same as an OR with inverted inputs, which is the idea behind bubble pushing.

What you do on this bench
- Make an inverter from one NAND gate with its inputs joined.
- Build AND and OR from NAND gates only and test their truth tables.
- Repeat with NOR gates only.
- Build the alternate symbols from inverters and basic gates.
- Compare each alternate symbol with the gate it is equal to.
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
Why is NAND called a universal gate?
Any logic function can be built from NAND gates alone, because NAND can make NOT, AND and OR. Chip makers like this: one gate type is enough for a whole design.
How many NAND gates make an OR gate?
Three: two NAND gates used as inverters on the inputs and one NAND gate that combines them, since (A'B')' = A + B.
What is bubble pushing?
Moving inversion bubbles through a gate by swapping AND and OR, as De Morgan's law allows. It makes NAND and NOR circuits easier to read.
Read the concepts page for this lab · All Digital Logic Design virtual labs · All articles