Boolean Logic Lab

Interactive Combinational Circuit Visualizer

0
A
0
B
AND
0
Result Y

Boolean Function

$$ Y = A \cdot B $$

Output is HIGH (1) only if both inputs are HIGH (1).

Truth Table Analysis

A B Y

Digital Logic & Boolean Algebra: A Modern Guide

Every digital processor on Earth—from the micro-controller in your washing machine to the AI servers processing this request—is built upon a single mathematical foundation: Boolean Algebra. Developed by George Boole in 1847, this system reduces reasoning to binary choices: True or False, 1 or 0. The Boolean Logic Lab is a precision-engineered simulation environment for visualizing these digital signals in real-time.

Expanded Gate Universe

Beyond simple AND/OR logic, modern circuits rely on derived gates for efficiency. We simulate the complete universal set:

1. Universal Logic (NAND / NOR)

"NAND and NOR gates are 'Universal' because any other logic gate (AND, OR, NOT) can be constructed entirely from combinations of just NAND or just NOR gates. This is crucial for semiconductor manufacturing efficiency."

2. Parity Logic (XOR / XNOR)

"XOR (Exclusive OR) is the fundamental building block of arithmetic addition in CPUs. It detects when inputs are distinct. XNOR (Equivalence) detects when inputs are identical, used heavily in data comparison."

Chapter 1: Multi-Variable Complexity

While basic tutorials show 2-input gates, real-world logic often involves 3, 4, or more variables. Our simulator's 3-Variable Mode allows you to explore concepts like:

CUSTOM EXPRESSION ENGINE

Use the "CUSTOM" mode to input raw boolean strings. For example, typing (A & B) | C will verify if a redundant safety system (C) overrides the requirement for dual-keys (A and B).

Chapter 2: De Morgan's Laws and Logic Minimization

Linguistic logic often contains redundancies. Engineers use Boolean Algebra to "simplify" circuits, reducing heat and cost. The primary laws are De Morgan's Laws:

  1. Law of the Product:

    The negation of a conjunction is the disjunction of the negations.

    $$\overline{A \cdot B} = \overline{A} + \overline{B}$$

  2. Law of the Sum:

    The negation of a disjunction is the conjunction of the negations.

    $$\overline{A + B} = \overline{A} \cdot \overline{B}$$

Engineer Your Logic

From simple gates to complex custom equations, validate your digital architecture instantly.

Start Simulation

Recommended Logic Tools