![](https://backnotes.com/wp-content/uploads/2021/06/image3-1.jpeg)
Logic Gates
A logic gate is an idealized or physical electronic device implementing a Boolean function, a logical operation performed on one or more binary inputs that produces a single binary output
AND gate
The AND gate only likes when both inputs are truths/1s.
![](https://backnotes.com/wp-content/uploads/2021/06/image-71.png)
OR Gate
The OR gate likes everything except two falses/0s.
![](https://backnotes.com/wp-content/uploads/2021/06/image-72.png)
NOT Gate
The NOT gate outputs the opposite of the input
![](https://backnotes.com/wp-content/uploads/2021/06/image-73.png)
NAND Gate
The NAND gate likes everything except two truths/1s. Opposite outputs of the AND gate.
![](https://backnotes.com/wp-content/uploads/2021/06/image-74.png)
NOR Gate
The NOR gate only likes when both inputs are falses/0s.
![](https://backnotes.com/wp-content/uploads/2021/06/image-75.png)
XOR Gate
The XOR gate only likes when both inputs are different.
![](https://backnotes.com/wp-content/uploads/2021/06/image-76.png)
All gates can formed with NAND gates and is thus called the universal gate
AND
![](https://backnotes.com/wp-content/uploads/2021/06/image-77.png)
OR
![](https://backnotes.com/wp-content/uploads/2021/06/image-78.png)
NOT
![](https://backnotes.com/wp-content/uploads/2021/06/image-79.png)