Skip to content
SPM Tuition
Computer Science · Computing systems and logic

Explaining selected logic circuits

You can name each gate, but explaining what the whole circuit does feels impossible.

To explain a logic circuit, write its expression, trace a few input cases, then state the rule in a plain sentence. Naming each gate is only the first step.

This lesson follows reading Boolean expressions and truth tables. It leads into connecting hardware functions to system behaviour.

How do I read the wiring?

Start at the inputs and follow each wire to the first gate. Write what that gate outputs, then feed it into the next gate.

Each gate gives one part of the expression, and the last gate gives the full expression.

Worked example: a door alarm

An original circuit has three inputs: D (door open), S (system armed) and P (panic button). The wiring is:

  1. An AND gate takes D and S.
  2. An OR gate takes the output of that AND gate and P.

Expression. Q = (D AND S) OR P.

Trace three cases.

D S P D AND S Q
1 1 0 1 1
1 0 0 0 0
0 0 1 0 1

Explanation. The alarm sounds if the door is open while the system is armed, or if the panic button is pressed at any time.

The mistake that costs marks

One slip is to describe each gate in turn and never state what the circuit does. Another is to change the gate order, which changes the circuit.

Circuit Expression D = 0, S = 0, P = 1
OR after AND (D AND S) OR P 1, the panic button works alone
AND after OR D AND (S OR P) 0, the door must be open

Both circuits use the same three inputs and gates. Only the position of the OR gate differs, and now the panic button works only when the door is open. Always finish with a sentence saying what the circuit does.

Check yourself

A lamp circuit has inputs Day (1 when it is daytime) and Motion. The wiring is: a NOT gate on Day, then an AND gate with Motion. Write the expression, trace Day = 0 with Motion = 1, and explain the rule.

Answer

Expression: L = (NOT Day) AND Motion.

Trace: NOT 0 = 1, then 1 AND 1 = 1, so the lamp is on.

Explanation: the lamp is on only when it is not daytime and motion is detected. In the daytime, NOT Day is 0, so the lamp stays off even with motion.

What to study next

Circuits connect to how hardware behaves. Next, read connecting hardware functions to system behaviour, then try the computing systems and logic practice set.

If you want a teacher to hear your circuit explanations, see online one-to-one Computer Science tuition.

Common questions

How do I explain what a circuit does?

First write the expression from the wiring, working from the inputs towards the output. Then trace two or three input combinations. Finally state the behaviour in one plain sentence, such as the alarm sounds when the system is armed and the door is open.

What is the difference between explaining and tracing?

Tracing follows one set of inputs through each gate and gives one output. Explaining describes the rule for all inputs. A good answer often uses a trace as evidence and then states the general rule.

Do I need to draw the circuit?

Only when the question asks for a diagram. When a circuit is given, write the expression and the explanation. When you must draw, start from the expression and place one gate for each operator.

If you can read gates but struggle to explain a circuit in words, a one-to-one Computer Science teacher can ask you to explain circuits aloud and help you tighten each sentence.

  • Online one-to-one lessons for your child with an experienced teacher.
  • Your first class is a one-hour trial, from RM50. The fee is agreed before you book.
  • Happy with the teacher? Continue with lessons of about 1.5 hours. If not, ask for another teacher.