2024 A/L Physics Past Paper · Question 40 (English Medium)

The Boolean expression of a logic circuit

Consider the logic circuit shown with three inputs AA, BB and CC. What is the Boolean expression that best represents the output FF of the circuit?

  1. (1) F=BˉA+BCF=\bar{B}A+BC
  2. (2) F=BˉA+BˉCF=\bar{B}A+\bar{B}C
  3. (3) F=BA+BˉCF=BA+\bar{B}C
  4. (4) F=BA+BCF=BA+BC
  5. (5) F=BˉA+BCˉF=\bar{B}A+B\bar{C}
Answer and explanation

Answer: (1) F=BˉA+BCF=\bar{B}A+BC

What the question asks

This question is about a small logic circuit with three switches, A, B and C, and one output F.

Each gate is a simple rule. A NOT gate flips its input. An AND gate gives 1 only when both its inputs are 1. An OR gate gives 1 when either input is 1.

Input B splits into two wires. One goes through the NOT gate to the top AND gate. The other goes straight to the bottom AND gate.

What we must find: the Boolean expression for F.

How we find it: follow each wire into its gate and write what comes out of each gate. Then join the two AND outputs with the OR gate.

Relevant theory

F = Ā Where Ā is the inversion of A

Boolean expression for the two-input AND gate is written as,

F = A.B

Boolean expression for the OR gate is, F = A + B

What is happening: a NOT gate gives Aˉ\bar{A}, the inversion of its input. An AND gate multiplies, A.BA.B. An OR gate adds, A+BA+B, in Boolean algebra.

So each gate turns the expressions on its input wires into one new expression on its output wire.

For example, a garden light switches on when it is dark AND someone walks past, OR when the test button is pressed AND the power is on.

It is 9 pm and a cat walks past: dark=1,  movement=1,  so the light comes ondark = 1,\; movement = 1,\; so\,the\,light\,comes\,on

In words: each AND part needs both of its conditions, and the OR lets either part turn the light on.

Reading the options

Check one row: A=1A=1, B=0B=0, C=0C=0 gives BˉA=1\bar{B}A=1, so F=1F=1.

Top AND gate: AA and Bˉ\bar{B}

BˉA\bar{B}A

BB passes the NOT gate first, so this gate gets Bˉ\bar{B}.

Bottom AND gate: BB and CC

BCBC

This wire leaves BB before the NOT gate, and CC comes in directly.

OR gate

F=BˉA+BCF=\bar{B}A+BC

The OR gate adds the two AND outputs.

F=BˉA+BCF=\bar{B}A+BC is option (1).

Why the other options fail

BˉC\bar{B}C puts the NOT gate on the bottom AND gate too. But the wire to the bottom gate leaves BB before the NOT gate, so that gate gets BB itself. At A=0A=0, B=1B=1, C=1C=1 the circuit gives F=1F=1, but BˉA+BˉC=0\bar{B}A+\bar{B}C=0.

BA+BˉCBA+\bar{B}C moves the NOT gate from the top gate to the bottom gate. In the figure the NOT gate feeds the top gate, next to AA. At A=1A=1, B=0B=0, C=0C=0 the circuit gives F=1F=1, but BA+BˉC=0BA+\bar{B}C=0.

BA+BCBA+BC leaves out the NOT gate. At A=1A=1, B=0B=0, C=0C=0 the top gate gets 11 and Bˉ=1\bar{B}=1, so F=1F=1. BA+BCBA+BC gives 00.

BCˉB\bar{C} puts a NOT gate on CC, but CC goes straight into the bottom AND gate. At A=0A=0, B=1B=1, C=1C=1 the circuit gives F=1F=1, but BˉA+BCˉ=0\bar{B}A+B\bar{C}=0.

Conclusion

F=BˉA+BCF=\bar{B}A+BC

F=BˉA+BCF=\bar{B}A+BC. The answer is (1).

Follow the wire, not the letter: B splits before the NOT gate, so only the top gate gets B̄.

Exam tip

தமிழ் · සිංහල