Logic Gates Flashcards
(27 cards)
What logic gate outputs 1 only when both inputs are 1?
AND Gate
What logic gate outputs 1 if at least one input is 1?
OR Gate
What gate inverts its single input?
NOT Gate
Which gate gives the opposite output of an AND gate?
NAND Gate
Which gate gives the opposite output of an OR gate?
NOR Gate
What gate outputs 1 when the inputs are different?
XOR Gate
What gate outputs 1 when the inputs are the same?
XNOR Gate
What is the symbol for the AND operation in Boolean algebra?
· (dot)
What is the symbol for the OR operation in Boolean algebra?
+ (plus)
What is the Boolean expression for a NOT gate?
¬A or A’
How does a NAND gate behave when both inputs are 1?
It outputs 0
What does an XOR gate output when both inputs are 1?
1
What kind of logic gate is known as the ‘exclusive OR’?
XOR Gate
Which two gates are called ‘universal gates’?
NAND and NOR
Why are NAND and NOR gates called universal gates?
Because you can build any other gate using just NAND or NOR
Which gate is best for detecting input differences?
XOR Gate
What is the output of an OR gate when both inputs are 0?
0
What is the output of a NOR gate when both inputs are 0?
1
What is the output of an XNOR gate when one input is 1 and the other is 0?
What is the output of a NOT gate when the input is 1?
0
AND
Output is 1 only if both inputs are 1 (A·B)
OR
Output is 1 if at least one input is 1 (A + B)
NOT
Inverts the input (¬A)
NAND
Output is 0 only if both inputs are 1; inverse of AND (¬(A·B))