Logic Gates Flashcards
What is a logic gate?
A logic gate is a device or piece of circuitry designed to perform basic Boolean operations. It takes one or more inputs and produces a single output.
What is the OR gate?
The OR gate is a logic gate that performs the OR operation on its inputs; it generates a high output (1) if either or all of its inputs are high.
Write out the truth table for an OR gate.
A | B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
What is an AND gate?
An AND gate is a logic gate which performs the AND operation on its inputs, producing a high (1) output only if all of its inputs are high.
Write out the truth table for the AND gate.
A | B | Output
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
What is a control input?
If there are two inputs A and B, B is said to be a control input if its logic levels determine the which parts of A are allowed through to become outputs.
What is the NOT gate?
This is the logic gate which accepts only one input and produces an output whose logic level (high/low, 1/0) is the inverse of its input.
It takes in only one input and produces its reverse as its output.
What is another name for the NOT gate?
It is also called the invertor.
What is the truth table for the NOT gate?
A | Output
0 | 1
1 | 0
What is the NAND gate?
The NAND gate is a logic gate that performs both the AND and the NOT operations on its inputs — in that order.
What is the truth table for NAND operation.
A | B | Output
0 | 0 | 1
0 | 1 | 1
1 | 0 | 1
1 | 1 | 0