QlarIITy

PhysicsJEE Main 2023 · 8 AprilSingle correct

For the logic circuit shown, the output waveform at YY is:

Two input signals drawn against time t, from 0 to 4, and a gate circuit. Signal A is low from 0 to 2 and high from 2 to 4. Signal B is low from 0 to 1, high from 1 to 2, low from 2 to 3 and high from 3 to 4. In the circuit, A is connected to both inputs of a NAND gate and B to both inputs of another NAND gate; the outputs of these two gates are the inputs of a third NAND gate, whose output is Y.
  1. Option A: Diagram A
    A signal against time t, from 0 to 4: low from 0 to 1 and high from 1 to 4.
  2. Option B: Diagram B
    A signal against time t, from 0 to 4: high throughout, from 0 to 4.
  3. Option C: Diagram C
    A signal against time t, from 0 to 4: high from 0 to 1 and low after that.
  4. Option D: Diagram D
    A signal against time t, from 0 to 4: low throughout, with nothing above the axis.
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

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:

A‾⋅B‾‾=A+B\overline{\overline{A} \cdot \overline{B}} = A + B

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.

A table of A, B and Y in each interval from 0 to 4: Y is 0 from 0 to 1, where both inputs are 0, and 1 in the other three intervals.

Approach. Reduce the circuit to one expression and apply it to each unit interval of the input waveforms.

  1. Step 1: Expression for the output

    Each of the first two NAND gates has its inputs joined, so they give A‾\overline{A} and B‾\overline{B}. The third gate gives

    Y=A‾⋅B‾‾=A+BY = \overline{\overline{A} \cdot \overline{B}} = A + B
  2. 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.

  3. 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.

  4. Step 4: Matching

    The output is low up to t=1t = 1 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. A‾⋅B‾‾=A+B\overline{\overline{A} \cdot \overline{B}} = A + B.

More on Semiconductors