Logic gates are fundamental building blocks of digital circuits. They perform basic logical functions based on the input signals they receive. Here's a cheat sheet outlining the basic types of logic gates:
1. AND Gate
Description: Outputs true (1) only when all inputs are true (1).
Symbol:
Truth Table:
A
B
Y
0
0
0
0
1
0
1
0
0
1
1
1
2. OR Gate
Description: Outputs true (1) when at least one input is true (1).
Symbol:
Truth Table:
A
B
Y
0
0
0
0
1
1
1
0
1
1
1
1
3. NOT Gate
Description: Inverts the input signal.
Symbol:
Truth Table:
A
Y
0
1
1
0
4. XOR Gate
Description: Outputs true (1) when the number of true inputs is odd.