GCSE · Computer Science · AQA · Spec 8525
Logic circuit diagrams
“If I’m not tired and I’ve finished my homework, I’ll watch a film.” Looks like a sentence. It’s secretly a circuit. Let’s find out when the film happens.
Computer Science · Logic circuits
Will there be a film tonight?
The word ‘not’ becomes a NOT gate. The word ‘and’ becomes an AND gate. ‘Tired’ goes through the NOT gate first; what comes out, X, meets ‘homework finished’ at the AND gate. Every wire carries a 1 (true) or a 0 (false). Nothing in between.
Before you press Next, have a guess: in this row, what will the NOT gate hand over as X?
| tired | homework finished | X (after NOT gate) | watch a film |
|---|---|---|---|
| 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 |
Output
Step 1: Tired = 0, homework finished = 0. The NOT gate flips the 0, so X = 1. Now the AND gate gets X = 1 and homework = 0. AND wants both to be 1. They’re not. No film.
Go row by row. Find X first, then the output.
Computer Science · Logic circuits
Which gate is it?
Drop each card on the gate it describes.
Still to sort
AND (0)
Two inputs, one output
OR (0)
Two inputs, one output
NOT (0)
One input, one output
XOR (0)
Two inputs, one output
You’ve met NOT and AND. Two more gates join the party: OR and XOR. Every card is either a symbol or a behaviour. Commit to a gate for each, then check why.
Predict, then check
With only AND gates, you can shuffle the order and every input still has to be 1, so nothing changes. But what happens when the gates are different?
Circuit 1: A and B go into an OR gate, and its output goes into an AND gate with C. Circuit 2: A and B go into an AND gate, and its output goes into an OR gate with C. Both get A = 0, B = 0, C = 1. Same output?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Chain gates together so each answer feeds the next, then pin down exactly when the output is true.
What you need to know
- A logic circuit joins two or more gates to handle logic no single gate can manage. Computer chips contain millions of them.
- Every input and output in a circuit is either 1 (true) or 0 (false). Nothing in between.
- AND outputs 1 only when both inputs are 1. NOT flips its single input: 0 becomes 1, 1 becomes 0.
Have a goYour mate reckons a NOT gate fed a 1 should ‘stay positive’ and output 1. Do you agree? What does it really output?
No. It outputs 0.
NOT always flips its input, so a 1 in means a 0 out. A gate that copied its input would be pointless.
- OR outputs 1 when either or both inputs are 1. XOR outputs 1 only when its inputs are different.
- Building from a sentence: spot the gate words, name every input and the output, then wire the gates together.
- Wiring means one gate’s output becomes the next gate’s input, until you reach the final output.
Have a go‘If it is NOT raining AND I have a ball, I play outside.’ Which input goes through the NOT gate?
‘Raining’.
The NOT sits on the word it negates, so ‘raining’ is flipped first; ‘have a ball’ goes straight into the AND gate.
- A truth table lists every input combination: 2 inputs give 4 rows, 3 give 8. Each extra input doubles the rows.
Have a goA circuit has 4 inputs. How many rows does its full truth table need?
16 rows.
Each extra input doubles the rows: 4, 8, 16. Adding 4 each time (to get 12) would miss half the combinations.
- Give each in-between wire its own letter, like X or Q, and work out its column before the final output.
- Shuffling a chain of only AND gates changes nothing. Once gates are mixed, the arrangement can change the output.
- Finished table? Find the rows where the output is 1 and say what those inputs have in common.
The big picture
A logic circuit joins two or more gates so one gate’s output becomes the next gate’s input. To build one from a sentence, spot the gate words, name every input and the output, then wire the gates up. To test it, write a truth table: every input combination, a labelled column for each in-between wire, then the final output. The rows where the output is 1 tell you when the circuit is true.
Key points
Worked example
Problem
A fan controller has two sensors, S1 and S2. Both feed an AND gate, and the AND gate’s output, M, feeds a NOT gate. The NOT gate’s output is F. Work out F for every sensor combination and say when F is 0.
⚠ Watch out
Reading OR as ‘one or the other but not both’. That’s XOR: OR also outputs 1 when both inputs are 1. Second trap: shuffling gates freely. Fine with only AND gates, but once gates are mixed the output can change, so test it.
Memory hook
Middle first, then the end: label the wire between the gates, fill its column, then the output. And for the two ORs: OR says ‘both is fine’, XOR says ‘one or the other, never both’.
Check yourself
Cover the page. From memory: sketch the four gate symbols with their rules, name the one input pair where OR and XOR disagree, and say why the middle-wire column comes first.
Flashcards
(14)What does a NOT gate do?
When does an AND gate output 1?
When does an OR gate output 1?
When does an XOR gate output 1?
How do you spot an AND gate in a diagram?
How do you spot a NOT gate in a diagram?
How does the XOR symbol differ from the OR symbol?
Which gate means ‘one or the other, but not both’?
Why join gates into a circuit instead of using one gate?
In a two-gate circuit, what is the wire between the gates?
Drawing a circuit from a statement: what are the steps?
How many rows does a truth table need for 3 inputs?
Does rearranging the gates in a circuit change its output?
How do you describe when a circuit’s output is true?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 26 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.