Identify the correct Logic Gate for the following output () of two inputs and .
- Option A: Diagram A
- Option B: Diagram B
- Option C: Diagram C
- Option D: Diagram D
Solution
Core idea. An output that is low only when both inputs are high identifies a NAND gate.
Concept refresher. The waveforms of a gate are its truth table spread out in time: in each interval the levels of the inputs and of the output give one row. A gate whose output is 0 only when both inputs are 1 is a NAND gate,
which can be drawn as an AND gate followed by a NOT gate.
Picture the situation. Look at the two stretches where the output is low. In both of them the two inputs are high together. Everywhere else, with at least one input low, the output is high. That is the mark of a NAND gate.
Approach. Read off the rows of the truth table from the waveforms and find the circuit that gives them.
Step 1: Rows from the waveforms
In the first interval and in the fifth, A = 1 and B = 1, and the output is 0. In the other intervals the inputs are 00, 01 or 10, and the output is 1 each time.
Step 2: The operation
An output that is 0 only for the inputs 11 is the NAND operation, .
Step 3: The circuit
A NAND operation is an AND gate followed by a NOT gate, which is diagram B.
Answer. (B) Diagram B
Sanity check. The second interval, with both inputs 0 and the output 1, rules out any circuit whose output is low for 00.
Why the other options are wrong
- (A) An OR gate followed by a NOT gate is a NOR gate, which gives 0 when one input is 1; the output is 1 in those intervals.
- (C) With the bubble on input A it gives , which is 0 for the inputs 00; the output is 1 there.
- (D) With the NOT gate on input B it gives , which is 1 for the inputs 11; the output is 0 there.
Key takeaway
The trap. Check every distinct combination of inputs, not just the first interval.
How toppers think. They look at where the output is low and read the inputs there.
Remember. : 0 only for 1 and 1.
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›