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

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 →
6 chips7408, 7432, 7404, 7400, 7402, 7486
10 taskssix gates, two theorems, two design tasks
Real faultsopen inputs, missing power, reversed supply
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: gates, truth tables, TTL levels and pin numbering.
02
Wire every pin yourself, power included. A chip with no supply does nothing and a reversed supply damages it.
03
Truth tables fill in from the LEDs as you flip the switches. Download your lab sheet as a PDF.
Designed by
© 2026 Fasih Ullah Saleem. All rights reserved. · About · Terms of Use · Privacy
About this virtual lab

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.

Logic Gates and Boolean Theorems: 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. Place a gate chip and wire its power and ground pins.
  2. Connect two switches to the inputs of one gate and its output to an LED.
  3. Fill in the truth tables of AND, OR, NOT, NAND, NOR and XOR.
  4. Wire both sides of an absorption theorem and compare the two outputs for every input.
  5. 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.