SinBench
← All labs · Digital Logic Design · Free virtual lab

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 →
7400 and 7402quad NAND and quad NOR
11 tasksNAND builds, NOR design tasks, alternate symbols
Only NANDthe bench checks every chip on the board
Before you start

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.

01
Read the concepts page: why NAND and NOR are universal, and how to read a bubble on a symbol.
02
Use only the chip each task allows. The guided step checks every chip on your board.
03
Tables fill in from the LEDs. In the decoding tasks the expected column stays hidden, so you work it out yourself.
Designed by
© 2026 Fasih Ullah Saleem. All rights reserved. · About · Terms of Use · Privacy
About this virtual lab

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.

NAND and NOR as Universal Gates: the working 3D lab bench with its trainer and instruments
The bench of this lab, as it looks after you enter it.

What you do on this bench

  1. Make an inverter from one NAND gate with its inputs joined.
  2. Build AND and OR from NAND gates only and test their truth tables.
  3. Repeat with NOR gates only.
  4. Build the alternate symbols from inverters and basic gates.
  5. 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.