QlarIITy

PhysicsJEE Main 2023 · 30 JanuarySingle correct

The output waveform of the given logical circuit for the following inputs AA and BB as shown below, is

A logic circuit and its input waveforms. Input A feeds both inputs of a NAND gate and input B both inputs of another NAND gate; the two outputs feed a third NAND gate, whose output is Y. Below, on a time axis marked t1 to t6: A is 0, becomes 1 at t1, 0 at t3, 1 at t5 and 0 at t6; B is 0, becomes 1 at t2, 0 at t4 and 1 at t6.
  1. Option A: Diagram A
    Output waveform on the time axis t1 to t6: 0 until t2, 1 from t2 to t3, then 0.
  2. Option B: Diagram B
    Output waveform on the time axis t1 to t6: 1 until t2, 0 from t2 to t3, then 1.
  3. Option C: Diagram C
    Output waveform on the time axis t1 to t6: 1 until t1, 0 from t1 to t4, 1 from t4 to t5, then 0.
  4. Option D: Diagram D
    Output waveform on the time axis t1 to t6: 0 until t1, 1 from t1 to t4, 0 from t4 to t5, then 1.
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. Reduce the circuit to one operation, then apply it interval by interval on the timing diagram.

Concept refresher. A NAND gate gives P⋅Q‾\overline{P \cdot Q}. With both inputs joined to the same signal it gives A⋅A‾=A‾\overline{A \cdot A} = \overline{A}, acting as a NOT gate. By De Morgan's theorem

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

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.

  1. Step 1: The circuit as one gate

    Each of the first two NAND gates has its inputs joined and gives A‾\overline{A} or B‾\overline{B}. The third gives

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

    so the circuit is an OR gate.

  2. Step 2: Reading the inputs

    From the figure, AA is 1 from t1t_1 to t3t_3 and from t5t_5 to t6t_6; BB is 1 from t2t_2 to t4t_4 and after t6t_6.

  3. Step 3: Building the output

    Before t1t_1 both are 0, so Y=0Y = 0. From t1t_1 to t4t_4 at least one of them is 1, so Y=1Y = 1. From t4t_4 to t5t_5 both are 0, so Y=0Y = 0. From t5t_5 onward one or the other is 1, so Y=1Y = 1. This is diagram D.

Answer. (D) Diagram D

Sanity check. At t6t_6 the input AA falls just as BB 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 t2t_2 and t3t_3, where both inputs are 1: the output of an AND gate.
  • (B) It is 0 only between t2t_2 and t3t_3: the output of a single NAND gate fed with AA and BB directly.
  • (C) It is 1 only where both inputs are 0, before t1t_1 and from t4t_4 to t5t_5: 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. A‾⋅B‾‾=A+B\overline{\overline{A} \cdot \overline{B}} = A + B.

More on Semiconductors