ELI5: logic gates (xor etc
// explanation
What are logic gates?
Logic gates are tiny electronic switches that make decisions by looking at their inputs and deciding what to output [2]. They're like traffic lights that only turn green when certain conditions are met [3].
What are the basic types?
There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR [2]. AND gate only says "yes" when both inputs say "yes," OR says "yes" if at least one input says "yes," and XOR is like "yes" only when the inputs are different from each other [4].
How do they actually work?
Logic gates are built using transistorsโtiny electronic parts that can turn on and off [3]. When you put lots of transistors together in the right way, they create these decision-making gates [3].
Why do we need them?
Logic gates are the building blocks that make computers work, because computers think in yes-and-no answers, and these gates help process those answers super fast [2].
// sources
Sep 10, 2022 ... So AND is bitwise multiply, XOR is bitwise +, IMPLIES is bitwise <, etc. I haven't tried this, but the poster was asking for ideasย ...
Mar 18, 2025 ... There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR and XNOR. AND gate. The AND gate produces an output of true only when bothย ...
Nov 18, 2013 ... In a modern context, gates are built up through assembling transistors to work in concert to create the functionality.
The XOR gate is a digital logic gate that gives a true (1 or HIGH) output when the number of true inputs is odd. An XOR gate implements an exclusive orย ...
Aug 27, 2025 ... It's made up of 2 NOR gates, and 1 AND gate. The expression is x = NOR(AND(a, b), NOR(a, b)) where x is the output. I just wanted toย ...
Video by Spanning Tree

Video by Electronics Simplified

Video by Brain Station Advanced
