Practical Lab

Logic Gate Designer

FREE PRACTICE
Build digital logic circuits, test binary inputs and generate truth tables.
100%
⚡
Build Your First Logic Circuit
Add an Input Switch, Logic Gate, and Output Bulb to begin. Click inputs to toggle 0 / 1!

Design Digital Logic Circuits & Truth Tables

Digital logic forms the fundamental building blocks of modern computer hardware and microprocessors. In Sri Lankan school ICT, students learn how basic logic gates process binary inputs (0 for False/Low, 1 for True/High) using Boolean algebra. In this interactive Logic Gate Designer, you can place input toggle switches, connect gates with virtual signal wires, monitor output bulbs in real time, and automatically generate comprehensive truth tables for your custom circuits.

01

Primary Logic Gates: AND, OR, NOT

The three basic logic operations are AND (output is 1 only when all inputs are 1; Y = A • B), OR (output is 1 if at least one input is 1; Y = A + B), and NOT (inverter that flips 0 to 1 and 1 to 0; Y = A').

02

Universal Gates: NAND & NOR

NAND (Y = (A • B)') and NOR (Y = (A + B)') are known as universal gates because any combinational logic function or computer processor circuit can be built exclusively using combinations of either gate alone.

03

Exclusive Gates: XOR & XNOR

XOR (Exclusive-OR; Y = A ⊕ B) produces output 1 when the inputs are different, making it essential for binary arithmetic adders. XNOR (Y = (A ⊕ B)') produces output 1 when both inputs are identical, serving as an equality comparator.

Standard 2-Input Logic Gate Truth Table Reference

Summary of output values for all 7 standard logic gates across all 4 binary input combinations:

Input A Input B AND OR NAND NOR XOR XNOR
00 001101
01 011010
10 011010
11 110001