How do we describe, simplify and design logic circuits whose output depends only on the present inputs?
Combinational logic built from logic gates, described by truth tables and Boolean expressions, simplified using Boolean algebra and Karnaugh maps.
An SQA Advanced Higher Engineering Science answer on combinational logic, covering logic gates, truth tables and Boolean expressions, simplification with Boolean algebra and Karnaugh maps, and designing a logic circuit from a specification.
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 key area is asking
The SQA wants you to design and analyse combinational logic, circuits whose output depends only on the present combination of inputs, not on any past state. You must use logic gates (AND, OR, NOT, NAND, NOR, and the exclusive forms), describe a circuit with a truth table and a Boolean expression, and simplify that expression using the laws of Boolean algebra and Karnaugh maps so the circuit uses as few gates as possible.
Gates, truth tables and Boolean expressions
A truth table lists every possible input combination and the output for each, so inputs give rows. From the rows where the output is 1 you can read off a sum-of-products Boolean expression: form a product (AND) of the inputs for each such row, complementing any input that is 0, then OR those products together. This gives a working circuit, but usually not the simplest one.
Simplifying with Boolean algebra
The laws of Boolean algebra let you shrink an expression before building it:
- Commutative / associative: order and grouping of AND or OR do not matter.
- Distributive: .
- Identity: , .
- Complement: , .
- De Morgan's laws: and .
Karnaugh maps
A Karnaugh map is a grid that rearranges the truth table so that adjacent cells differ in only one input. You plot a 1 in every cell where the output is 1, then group the 1s into rectangular blocks of 1, 2, 4 or 8 (powers of two), making each block as large as possible and allowing blocks to overlap and to wrap around the edges. Each block becomes one simplified product term: any input that changes within the block drops out. ORing the block terms gives the minimal sum-of-products expression, which is the fewest-gates design.
Examples in context
A two-key safety interlock on a press uses an AND gate so the ram fires only when both buttons are held, forcing the operator to keep both hands clear. A majority voter in a redundant control system outputs the value agreed by at least two of three sensors, built from AND and OR gates. A seven-segment decoder turns a 4-bit number into the seven outputs that light a display, designed by minimising seven separate truth tables with Karnaugh maps. In each case minimising the logic cuts the gate count and the cost.
Try this
Q1. State the Boolean expression for a 2-input AND gate with inputs and . [1 mark]
- Cue. .
Q2. Write De Morgan's law for . [1 mark]
- Cue. .
Q3. A truth table has 3 inputs. How many rows does it have? [1 mark]
- Cue. rows.
Exam-style practice questions
Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
SQA AH style4 marksA safety interlock turns on an output only when guard switch is closed AND either start button OR override is pressed. Write the Boolean expression for and state how many gates of which type are needed.Show worked answer →
Translate the words into Boolean operators: AND is a product, OR is a sum.
Expression: .
Gates: one 2-input OR gate to form , then one 2-input AND gate to combine that with .
Markers reward the correct expression and naming one OR gate and one AND gate. A common error is writing , which wrongly lets alone switch the output on.
SQA AH style5 marksSimplify the Boolean expression using Boolean algebra, and state the law used at each step.Show worked answer →
Factor out the common term .
by the distributive law.
A variable OR its complement is always true: (complement law).
So (identity law).
The whole expression simplifies to , so only a wire is needed and the input is irrelevant.
Markers reward factoring with the distributive law, applying , and the final result with the laws named.
Related dot points
- Sequential logic with memory: flip-flops storing a bit, counters dividing and counting pulses, and astable and monostable timing circuits.
An SQA Advanced Higher Engineering Science answer on sequential logic, covering the flip-flop as a one-bit memory, counters that count and divide clock pulses, and astable and monostable timing circuits that generate pulses and delays.
- Programmable control with a microcontroller: inputs and outputs, programs described by flowcharts and pseudocode, and the use of loops, decisions and sub-routines.
An SQA Advanced Higher Engineering Science answer on programmable control, covering the microcontroller and its inputs and outputs, programs described by flowcharts and pseudocode, and the program structures of sequence, selection, iteration and sub-routines.
- The operational amplifier as a high-gain difference amplifier, and the inverting, non-inverting, summing and difference configurations with their closed-loop gain relationships and saturation.
An SQA Advanced Higher Engineering Science answer on operational amplifier circuits, covering the ideal op-amp, open-loop gain and saturation, negative feedback, and the inverting, non-inverting, summing and difference amplifier configurations with their closed-loop gain relationships.
- The capacitor charge and discharge through a resistor, the time constant, and passive RC filters selecting signals by frequency.
An SQA Advanced Higher Engineering Science answer on analogue signal processing, covering capacitor charge and discharge through a resistor, the RC time constant, and passive low-pass and high-pass RC filters that select signals by frequency.
- Control systems described by the system model, the difference between open-loop and closed-loop control, and the role of feedback, the error signal and the components of a closed-loop system.
An SQA Advanced Higher Engineering Science answer on control systems, covering the system model, open-loop versus closed-loop control, negative feedback and the error signal, and the comparator, controller, actuator and sensor of a closed-loop system.