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?

NOT → ANDwatch film = (NOT tired) AND homework finishedgate
tiredhomework finishedX (after NOT gate)watch a film
0010
0111
1000
1100
tired=0, homework finished=0, X (after NOT gate)=1 → watch a film = 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.

1 / 4

Go row by row. Find X first, then the output.

Step 1 of 4: 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..

Watch out: The classic trap: jumping straight to the output. Work out X first. Then, and only then, use the AND gate.

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

8 of 8 still to sort.

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.

Computer Science · Logic circuits

OR or XOR? Find where they split

OR outputs 1 when either or both inputs are 1. XOR outputs 1 only when the inputs are different. For each input pair (A, B), tick every gate that would output 1, or neither.

  • A OR outputs 1
  • B XOR outputs 1
  1. A = 0, B = 0
  2. A = 0, B = 1
  3. A = 1, B = 0
  4. A = 1, B = 1

Computer Science · Logic circuits

Sentence to circuit: what comes first?

the order you do these jobs when you draw a circuit from a statement

1 · Do this first4 · Do this last
  1. Connect the gates so one gate’s output becomes the next gate’s input

  2. Finish at the final output

  3. Identify every input and the output

  4. Pick out the gate words in the statement: AND, OR, NOT

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?

Computer Science · Logic circuits

Your turn: finish the truth table

A and B go into an XOR gate. Its output, X, goes into a NOT gate, which gives the final output Q. Fill in the table, then say when Q is 1.

  1. Write the four input rows: (A, B) = 00, 01, 10, 11Two inputs means four combinations. Miss one and the table is lying to you.
  2. missing step
Which line is step 2?

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

1A circuit is a sentence built from gates: the words AND, OR and NOT become gates, and the wires carry each gate’s output on to the next.
2OR is 1 when at least one input is 1, both included. XOR is 1 only when the inputs are different.
3A truth table has a column for each input, each labelled in-between wire and the output, with one row for every input combination. Read the rows where the output is 1 to say when the circuit is true.
4A chain of only AND gates gives the same result in any order. With mixed gates, the arrangement can change the output, so compare truth tables before calling two circuits the same.
5Gates can be combined to handle any number of conditions, not just two.

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?
It takes one input and outputs the opposite: 0 becomes 1, and 1 becomes 0.
When does an AND gate output 1?
Only when both inputs are 1.
When does an OR gate output 1?
When either or both inputs are 1.
When does an XOR gate output 1?
Only when its two inputs are different: one is 1 and the other is 0.
How do you spot an AND gate in a diagram?
A flat input side and a rounded output side.
How do you spot a NOT gate in a diagram?
A triangle with a small circle at its output.
How does the XOR symbol differ from the OR symbol?
XOR is the OR shape with an extra curved line across the input side.
Which gate means ‘one or the other, but not both’?
XOR. OR doesn’t fit, because OR also outputs 1 when both inputs are 1.
Why join gates into a circuit instead of using one gate?
Some logic can’t be represented by a single gate, so gates are combined to build it.
In a two-gate circuit, what is the wire between the gates?
The first gate’s output and the second gate’s input at the same time, which is why you work out its value first.
Drawing a circuit from a statement: what are the steps?
Pick out the gate words (AND, OR, NOT), name every input and the output, then connect the gates, ending at the final output.
How many rows does a truth table need for 3 inputs?
8 (for 2 inputs it is 4).
Does rearranging the gates in a circuit change its output?
Not in a chain of only AND gates. With mixed gates it can, so compare the truth tables.
How do you describe when a circuit’s output is true?
Find the rows where the output is 1 and say what the inputs have in common in those rows.

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 posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.