QlarIITy

PhysicsJEE Main 2022 · 27 JulySingle correct

A logic gate circuit has two inputs AA and BB and output YY. The voltage waveforms of AA, BB and YY are shown below. The logic gate circuit is

Three voltage waveforms, A, B and Y, drawn one above the other from a common starting line. A has three equal pulses separated by equal gaps. B is high from the start of the first pulse of A to the start of the second pulse, and again during the third pulse. Y is high during the first pulse and the third pulse of A only.
  1. Option A: AND gate
  2. Option B: OR gate
  3. Option C: NOR gate
  4. Option D: NAND gate
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. Waveforms give the truth table interval by interval; high only when both inputs are high means AND.

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. An AND gate has a high output only when both inputs are high,

Y=A⋅BY = A \cdot B

An OR gate has a high output when at least one input is high, and NAND and NOR are the inverses of these.

Picture the situation. Run a vertical line across the three traces. Wherever Y is high, look up at A and B: both are high. Wherever either A or B is low, Y is low. The output is high only when the two inputs agree to be high.

A table of A, B and Y in the pulses of A and the gaps between them: Y is 1 in the first and third pulses, where A and B are both 1, and 0 in the first gap, the second pulse and the second gap.

Approach. Read off the rows of the truth table from the waveforms and compare with the four gates.

  1. Step 1: Reading the waveforms

    A has three pulses. B is high from the start of the first pulse of A until the start of the second, and again during the third. Y is high during the first and the third pulses of A only.

  2. Step 2: Rows of the truth table

    When A = 1 and B = 1, during the first and third pulses, Y = 1. When A = 0 and B = 1, between the first two pulses, Y = 0. When A = 1 and B = 0, during the second pulse, Y = 0. When both are 0, Y = 0.

  3. Step 3: The gate

    The output is 1 only when both inputs are 1, so the circuit is an AND gate.

Answer. (A) AND gate

Sanity check. During the second pulse of A the output stays low although A is high, which already rules out an OR gate.

Why the other options are wrong

  • (B) An OR gate would be high during the second pulse of A, where B is low; Y is low there.
  • (C) A NOR gate would be high where both inputs are low, at the start and the end; Y is low there.
  • (D) A NAND gate would be low during the first and third pulses of A, where both inputs are high; Y is high there.

Key takeaway

The trap. Use the intervals in which the two inputs differ to tell AND from OR.

How toppers think. They look at where the output is high and read the inputs there.

Remember. Y=A⋅BY = A \cdot B: high only when both are high.

More on Semiconductors