⚑ Logic Gates

7 fundamental gates Β· toggle inputs A & B Β· see live output and truth table

What is this?

Logic gates are the basic building blocks of all digital circuits. They take binary inputs (0 or 1) and produce a binary output following simple logical rules.

Why does it matter?

Every chip in your phone, computer, and TV was built from billions of logic gates. They are the foundation of all digital electronics and computer processor design.

Key terms
AND gate β€” outputs 1 only when both inputs are 1 OR gate β€” outputs 1 when at least one input is 1 NOT gate β€” inverts the input; turns 0 into 1 and vice versa NAND / NOR β€” AND/OR followed by NOT; each can build any circuit on its own XOR gate β€” outputs 1 only when the two inputs are different Truth table β€” lists all possible input combinations and their resulting outputs
🎯 Try this challenge

Set A = 1 and B = 0 in the simulator. Before testing, predict which gates will return 1 and which will return 0. Then check your predictions against the truth table.

Continue Learning
Sorting Algorithms