How do we design a logic circuit that does a real job, starting from a description of when the output should be on?
Design a simple logic system from a written specification by building its truth table and selecting the gates needed
A focused answer to the O-Level Electronics outcome on designing logic systems. Turning a written specification into a truth table, a Boolean expression and a gate circuit.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to design a simple logic system from a written description, by turning the words into a truth table, then a Boolean expression, then a circuit of gates. The central insight is that a problem stated in plain English ("sound the alarm when this and that, or the other") maps directly onto logic gates, with words like "and", "or" and "not" pointing to the gate you need.
The answer
From words to logic
Designing a logic system follows a fixed route:
- Identify the inputs and the output. Give each a letter and decide what logic 1 means for each (for example, when a door is open).
- Write the truth table. For every input combination, decide from the specification whether the output should be 1 or 0.
- Write the Boolean expression. Read it from the rows where the output is 1, or directly from the wording.
- Choose the gates and draw the circuit. Translate the expression into gates, with AND for a dot, OR for a plus and NOT for a bar.
Spotting the gate from the words
The language of the specification points to the gates:
- "A and B" both needed means an AND gate.
- "A or B" either being enough means an OR gate.
- "not A" or "when A is off" means a NOT gate.
- "Sound the alarm unless all is clear" often becomes a NOR gate, since NOR is high only when all inputs are 0.
Building the expression from the truth table
If the wording is complex, build the table first, then read off each row where the output is 1. Each such row contributes a term: an AND of the inputs (inverted where they are 0 in that row), and the terms are joined by OR. This guarantees a correct expression even when the description is awkward.
Overrides and combinations
Real systems often combine conditions. A common pattern is a sensing condition combined with a manual override: , where ORing the override forces the output on regardless of the sensors. Building from small, clearly named blocks keeps even a multi-input design manageable.
Examples in context
Example 1. A car seatbelt reminder. The chime should sound when the engine is on AND the seatbelt is unfastened. Naming the inputs and writing the two-row-relevant truth table leads straight to , built from a NOT gate (to invert the fastened signal) feeding an AND gate. A real safety feature falls out of two gates.
Example 2. A pedestrian crossing request. A "wait" light should come on when a button is pressed OR the timer demands a stop, but only while the system is enabled. The wording maps to an OR gate feeding an AND gate with the enable signal. Designing from the specification keeps the logic transparent and easy to test against the requirement.
Try this
Cue. A pump runs when the tank is empty AND the supply is available. Give the Boolean expression and the gate. , built from a single AND gate.
Cue. An alarm sounds when neither sensor detects all-clear, that is when both sensors read 0. Name the suitable single gate. A NOR gate, which is high only when all inputs are 0.
Cue. Explain how a manual override is added to a sensor-driven output. OR the override signal onto the sensor logic, so the output is forced on whenever the override is 1, regardless of the sensors.
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original5 marksA warning buzzer in a car should sound when the ignition is on AND a door is open. Using inputs I (ignition) and D (door), write the truth table, give the Boolean expression, and name the single gate that performs this function.Show worked answer →
The buzzer sounds (output 1) only when both I and D are 1.
Truth table: I=0 D=0 gives 0; I=0 D=1 gives 0; I=1 D=0 gives 0; I=1 D=1 gives 1.
Boolean expression: . A single two-input AND gate performs this function.
What markers reward: the output 1 only on the row, the expression , and identifying an AND gate. The word "AND" in the specification points straight to the gate.
Original5 marksA lamp should switch on when it is dark AND someone is present, OR when a manual override switch is pressed. Using inputs Dk (dark), P (present) and M (manual), give the Boolean expression and describe the gates needed to build the system.Show worked answer →
"Dark AND present" is . This result OR the manual switch gives the lamp output: .
Gates needed: a two-input AND gate to combine Dk and P, then a two-input OR gate to combine the AND output with M. The override M forces the lamp on whatever the sensors say.
What markers reward: the expression , an AND gate feeding an OR gate, and recognising that the OR with M acts as an override.
Related dot points
- State the function, symbol, truth table and Boolean expression of the AND, OR and NOT logic gates
A focused answer to the O-Level Electronics outcome on the basic logic gates. The AND, OR and NOT gates with their symbols, truth tables and Boolean expressions.
- State the function, truth table and Boolean expression of the NAND and NOR gates and explain why NAND is universal
A focused answer to the O-Level Electronics outcome on NAND and NOR gates. Their truth tables and Boolean expressions as inverted AND and OR, and why NAND is a universal gate.
- Derive the truth table of a combinational logic circuit built from two or more gates and write its Boolean expression
A focused answer to the O-Level Electronics outcome on combinational logic. Building the truth table of a multi-gate circuit step by step and writing its Boolean expression.
- Describe the input-process-output systems model and use block diagrams to represent an electronic system
A focused answer to the O-Level Electronics outcome on the systems model. The input, process and output blocks, drawing block diagrams, and analysing a real system as a chain of stages.