2017 A/L Physics Past Paper · Question 20 (English Medium)

Output of an OR gate

Two digital voltage waveforms AA and BB shown are connected to the two inputs of the gate shown. The correct output voltage waveform at FF is

  1. (1) Waveform (1)
  2. (2) Waveform (2)
  3. (3) Waveform (3)
  4. (4) Waveform (4)
  5. (5) Waveform (5)
Answer and explanation

Answer: (1) Waveform (1)

What the question asks

This question is about a logic gate. Two digital signals, A and B, go into the two inputs of the gate. Each signal is either high (logic 1) or low (logic 0) at each moment.

The gate drawn has a curved back and a pointed front. That is the symbol of an OR gate.

What we must find: the waveform that comes out at F.

How we find it: cut the time into equal slots, read A and B in each slot, and apply the OR rule slot by slot.

What each symbol means:

A, B: the two input signals.

F: the output signal.

1: high voltage (a pulse is up).

0: low voltage (the line is down).

Reading the drawing, with time cut into eight equal slots:

A is 1 in slots 1 and 5, and 0 elsewhere.

B is 1 in slots 1, 3 and 7, and 0 elsewhere.

Relevant theory

The truth for the two-input OR gate can be given as "When the input A or B is 1, the output is 1.

What is happening: an OR gate looks at its two inputs at every moment. If at least one of them is 1, the output is 1. Only when both are 0 is the output 0.

So the output waveform is high wherever A is high or B is high, or both.

For example, a staircase light with two switches, one at the bottom of the stairs and one at the top, wired so that either one can turn it on.

If you press the bottom switch, the light comes on. If your brother presses the top one, it comes on. If you both press, it is still on.

The light is off only when nobody is pressing either switch.

Applying it to this question

Both A and B are 1 (first slot)

Fis1F is 1

A is 1 and B is 1. At least one input is 1, so the OR gate gives 1.

Only B is 1 (third and seventh slots)

A is 0 but B is 1. One input is 1, so the output is 1.

Only A is 1 (fifth slot)

A is 1 but B is 0. One input is 1, so the output is 1.

Both A and B are 0 (all other slots)

Fis0F is 0

Both inputs are 0, so the output is 0.

Reasoning and calculation

Putting the slots together: F is 1 in slots 1, 3, 5 and 7, and 0 in slots 2, 4, 6 and 8.

That is four equal pulses,  one slot apart,  starting at t=0That\,is\,four\,equal\,pulses,\; one\,slot\,apart,\; starting\,at\,t = 0

Reading the options

Four equal pulses starting at t=0Four\,equal\,pulses\,starting\,at\,t = 0: waveform (1).

Waveform (1) is high in slots 1, 3, 5 and 7, exactly where A or B is 1.

Why the other options fail

Waveform (2) is high only when both inputs are high. That is the AND rule, not OR. An OR gate gives 1 whenever A or B is 1, which happens in four separate slots.

Waveform (3) misses the first slot, where A and B are both 1. It is the output of a gate that gives 1 only when exactly one input is 1. An OR gate gives 1 whenever A or B is 1, which happens in four separate slots.

Waveform (4) has only two pulses. It leaves out the first and third slots, where the output must also be 1. An OR gate gives 1 whenever A or B is 1, which happens in four separate slots.

Waveform (5) stays at 1 for ever. But in the second slot both inputs are 0, so the output must fall back to 0. An OR gate gives 1 whenever A or B is 1, which happens in four separate slots.

Checks

Second check with the truth table: count the slots where the output must be 0. Both inputs are 0 in slots 2, 4, 6 and 8, so the output must be low in exactly those four slots and high in slot 1. Only waveform (1) has a pulse at slot 1 and four pulses in all.

Conclusion

The OR gate gives 1 whenever A or B is 1: slots 1,  3,  5 and 7. That is four pulses from t=0,  waveform (1). The answer is (1)slots\,1,\; 3,\; 5\,and\,7.\,That\,is\,four\,pulses\,from\,t = 0,\; waveform\,(1).\,The\,answer\,is\,(1)

Draw thin vertical lines at every edge of A and B. Then read the gate slot by slot, never by looking at the overall shape.

Exam tip

தமிழ் · සිංහල