De Morgan demo

Two circuits, two expressions, one truth table — and two lamps that always agree. A ready-made basics circuit you can open in the TorchAnvil simulator.

Two ways to say the same thing

De Morgan's laws are two tiny algebraic identities that show up all over digital design:

This sample builds the first one as two parallel circuits driven by the same two levers, each ending at its own lamp. The claim is: the lamps always, always agree.

How it works

There are two independent chains:

Each lever fans out to both chains, so the two circuits always see identical inputs.

A B A & B !(A & B) !A !B !A OR !B
0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0

The fourth and seventh columns match on every row. That's the law, in the flesh.

Why it matters

De Morgan is the "flip it around" trick that lets you rewrite any Boolean expression in a more convenient form. Designers use it constantly:

Seeing the two forms side by side — and watching them stay locked in step — makes the law intuitive rather than abstract.

Try this