The output waveform of the given logical circuit for the following inputs and as shown below, is
- Option A: Diagram A
- Option B: Diagram B
- Option C: Diagram C
- Option D: Diagram D
Solution
Core idea. Reduce the circuit to one operation, then apply it interval by interval on the timing diagram.
Concept refresher. A NAND gate gives . With both inputs joined to the same signal it gives , acting as a NOT gate. By De Morgan's theorem
so two NAND inverters followed by a NAND gate make an OR gate. The output waveform of a gate is found by applying its rule in each interval of time between changes of the inputs.
Picture the situation. The first two gates turn A and B upside down; the third turns their AND upside down again. The net effect is an OR: the output is high whenever A or B is high. On the timing diagram, that means the output is low only in the stretches where both input traces are low together.
Approach. Reduce the circuit to an OR gate, then mark the intervals in which at least one input is high.
Step 1: The circuit as one gate
Each of the first two NAND gates has its inputs joined and gives or . The third gives
so the circuit is an OR gate.
Step 2: Reading the inputs
From the figure, is 1 from to and from to ; is 1 from to and after .
Step 3: Building the output
Before both are 0, so . From to at least one of them is 1, so . From to both are 0, so . From onward one or the other is 1, so . This is diagram D.
Answer. (D) Diagram D
Sanity check. At the input falls just as rises, so the output stays at 1 through that instant, as diagram D shows.
Why the other options are wrong
- (A) It is 1 only between and , where both inputs are 1: the output of an AND gate.
- (B) It is 0 only between and : the output of a single NAND gate fed with and directly.
- (C) It is 1 only where both inputs are 0, before and from to : the output of a NOR gate, the inverse of the right answer.
Key takeaway
The trap. NAND gates with joined inputs are inverters and change what the final gate computes.
How toppers think. They look for the intervals where the output must be 0, here where both inputs are low, and draw the rest high.
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 ›