For the logic circuit shown, the output waveform at is:
- Option A: Diagram A
- Option B: Diagram B
- Option C: Diagram C
- Option D: Diagram D
Solution
Core idea. A NAND gate fed through two inverters is an OR gate; its output is low only while both inputs are low.
Concept refresher. A NAND gate with both inputs joined inverts its signal. A NAND gate fed with two inverted signals gives, by De Morgan's theorem, the OR of the original signals:
An OR output is high whenever at least one input is high. For waveforms, the rule is applied in each interval of time.
Picture the situation. The two small gates flip A and B, and the third NAND gate flips the product of the flipped signals, which amounts to adding A and B. So Y is high whenever either input is high. Slide along the time axis: both inputs are low only in the first interval; after that one of them is always high.
Approach. Reduce the circuit to one expression and apply it to each unit interval of the input waveforms.
Step 1: Expression for the output
Each of the first two NAND gates has its inputs joined, so they give and . The third gate gives
Step 2: Reading the inputs
A is low from 0 to 2 and high from 2 to 4. B is low from 0 to 1, high from 1 to 2, low from 2 to 3 and high from 3 to 4.
Step 3: Interval by interval
From 0 to 1 both inputs are low, so Y is low. From 1 to 2, B is high; from 2 to 3, A is high; from 3 to 4 both are high. In each of these Y is high.
Step 4: Matching
The output is low up to and high from then on, which is diagram A.
Answer. (A) Diagram A
Sanity check. Between 2 and 3 only A is high and the output is still high, as an OR gate requires; an AND of the inputs would be low there.
Why the other options are wrong
- (B) A constant high output would need an input to be high from the start; from 0 to 1 both inputs are low, so the output is low there.
- (C) It is high only from 0 to 1, exactly the interval in which both inputs are low: it is the inverse of the correct output.
- (D) A constant low output would need both inputs to stay low; from 1 onwards at least one of them is high.
Key takeaway
The trap. Three NAND gates do not make a NAND: work out the expression before reading the waveforms.
How toppers think. They look only for the intervals in which both inputs are low.
Remember. .
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 ›