Logic Gates & Boolean Algebra Flashcards
What are logic gates, and why are they important?
Logic gates perform basic logical functions and are the fundamental building blocks of digital circuits. Examples include AND, OR, NOT, NAND, NOR, and XOR.
What is the symbol and Boolean equation for a NOT gate?
Symbol: Inverted triangle with a circle.
Boolean equation:
A
‾
A
.
What is the truth table for an AND gate?
A B A ∙ B
0 0 0
0 1 0
1 0 0
1 1 1
What are the types of logic gates and their functions?
AND: Outputs 1 only if all inputs are 1.
OR: Outputs 1 if any input is 1.
NOT: Inverts the input.
NAND: Outputs 0 only if all inputs are 1.
NOR: Outputs 1 only if all inputs are 0.
XOR: Outputs 1 if inputs are different.
What is the identity for A.1
A⋅1=A.
What is the identity for A+0?
A+0=A.
What does DeMorgan’s Theorem state?
—- — —
A.B=A +B
—— — —
A+B=A.B
What is the purpose of Boolean algebra?
To simplify logic expressions by removing redundancies and using identities for minimal circuit design.
How do you derive Boolean expressions from a logic circuit?
Start from the inputs, work across the circuit to the outputs, and identify stages to write Boolean equations for each stage.
What is a half adder?
A circuit that adds two bits and outputs a sum and carry.
What is the difference between a half adder and a full adder?
A full adder adds three inputs (A, B, and Carry-in) and outputs a sum and carry-out, while a half adder adds only two inputs (A and B).
What is the purpose of a D-type flip-flop?
To store a single bit of data (0 or 1).
What are the inputs and outputs of a D-type flip-flop?
Inputs: Data (D) and Clock.
Outputs:
Q (stored bit) and Q’(complement of Q).
How can a D-type flip-flop be used in a burglar alarm system?
It can store the alarm state, ensuring the alarm remains active even if triggering conditions change (e.g., door closes or weight is removed).
_
Simplify A.(B+NotB)
A.1=A
Draw the circuit for
Q=(A+B)⋅C
Use an OR gate for
A
+
B
A+B, followed by an AND gate with input
C
C.
What is the truth table for a full adder?
A B Cin Sum Cout
0 0 0 0 0
0 1 0 1 0
1 0 0 1 0
1 1 0 0 1
0 0 1 1 0
0 1 1 0 1
1 0 1 0 1
1 1 1 1 1