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.” Secretly, that’s a circuit. Turn its words into gates and find out when the film happens.

Computer Science · Logic circuits

The film decision, gate by gate

The word ‘not’ becomes a NOT gate and the word ‘and’ becomes an AND gate. Tired goes into the NOT gate, and its result meets ‘homework finished’ at the AND gate. Every wire carries a 1 (true) or a 0 (false).

Before you press Next, predict it: in each row, what will the NOT gate hand to the AND gate?

NOT → ANDwatch film = (NOT tired) AND homework finishedgate
tiredhomework finishedafter NOT gatewatch a film
0010
0111
1000
1100
tired=0, homework finished=0, after NOT gate=1 → watch a film = 0

Output

 

Step 1: Not tired (0) and homework not finished (0). The NOT gate flips its input, so the 0 for tired comes out as 1. That 1 and the 0 for homework reach the AND gate, which only outputs 1 when both inputs are 1. They are not both 1, so no film.

1 / 4

Step through the four rows. In each one, find the ‘after NOT gate’ value first, then the output.

Step 1 of 4: Not tired (0) and homework not finished (0). The NOT gate flips its input, so the 0 for tired comes out as 1. That 1 and the 0 for homework reach the AND gate, which only outputs 1 when both inputs are 1. They are not both 1, so no film..

Watch out: Easy trap: jumping straight to the output. Do the NOT gate first, write down what it hands over, and only then use the AND gate.

Computer Science · Logic circuits

Which gate is it?

Sort each description into the gate it belongs to.

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 have already used NOT and AND. Two more gates join them: OR and XOR. Commit to each card first, then read why.

Computer Science · Logic circuits

OR or XOR? Find where they split

OR outputs 1 when at least one input is 1. XOR outputs 1 only when the two inputs differ. For each pair of inputs (A, B), tick every gate that would output 1, or tick 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

Drawing a circuit from a sentence

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

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

  2. End 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

A chain of only AND gates can be rearranged freely, because every input has to be 1 whichever way you wire it. What about a mixture?

Circuit 1: A and B go into an OR gate, and its output goes into an AND gate together with C. Circuit 2: A and B go into an AND gate, and its output goes into an OR gate together with C. Both circuits get A = 0, B = 0, C = 1. Do they give the same output?

Computer Science · Logic circuits

Finish the truth table

Inputs A and B go into an XOR gate. The output of the XOR gate (call it X) goes into a NOT gate, which gives the final output Q. Complete the truth table, then say when Q is 1.

  1. Write the four input rows: (A, B) = 00, 01, 10, 11Every combination of two inputs, so nothing is missed.
  2. missing step
Which line is step 2?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Join gates so each answer feeds the next one, then work out exactly when the output is true.

What you need to know

  • In a logic circuit, one gate’s output becomes the next gate’s input, so you work in stages.
  • Label the value between the gates, fill that column first, then find the final output.
  • A truth table lists every input combination and the output for each row.
  • OR includes the case where both inputs are 1. XOR is the gate that leaves that case out.
  • Rearranging gates can change the output once different gates are mixed.

The big picture

A logic circuit joins gates so that one gate’s output becomes the next gate’s input. You build it from a sentence by spotting the gate words, naming the inputs and the output, then connecting the gates. You test it with a truth table, working through the in-between values stage by stage until you reach the final output and can say when it is true.

Key points

1A circuit is a picture of a sentence: the words AND, OR and NOT become gates, and the in-between wires carry each gate’s output to the next.
2OR is 1 whenever at least one input is 1, including both. XOR is 1 only when the inputs differ.
3To describe when a circuit’s output is true, look at the rows where the output is 1 and say what is true of the inputs in those rows.
4A circuit of only AND gates gives the same output however you arrange it. Mixed gates do not promise that.

Worked example

Problem

A fan controller has two sensors, S1 and S2. Both feed an AND gate, and the AND gate’s output 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

Treating OR as ‘one or the other but not both’. That is XOR. An OR gate also outputs 1 when both inputs are 1. A second easy slip is assuming you can swap gates around freely: once different gates are mixed, the order changes the result.

🧠

Memory hook

Stage by stage: label the wire between the gates, fill that column, then the output. And remember: OR says ‘and both is fine’, XOR says ‘exclusive: one or the other, never both’.

✓

Check yourself

Cover the page and say from memory: (1) what an OR gate outputs when both inputs are 1, and (2) the one thing XOR does differently. Then check against the OR and XOR sort.

Flashcards

(12)
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 at least one input is 1, which includes both inputs being 1.
When does an XOR gate output 1?
Only when the two inputs are different: one is 1 and the other is 0.
How can you spot an AND gate in a diagram?
A flat input side and a rounded output.
How can you spot a NOT gate in a diagram?
A triangle with a small circle.
How does the XOR symbol differ from the OR symbol?
XOR is the OR shape with an extra curved line on the input side.
True or false: OR means ‘one or the other but not both’.
False. That describes XOR. OR is also 1 when both inputs are 1.
In a two-gate circuit, why label the wire between the gates?
Its value is the first gate’s output and the second gate’s input, so you can work stage by stage.
What do you do first when drawing a circuit from a statement?
Pick out the gate words (AND, OR, NOT), then name every input and the output, then connect the gates.
Does rearranging the gates in a circuit change its output?
Not for a circuit of only AND gates. When different gates are mixed it can.
How do you say when a circuit’s output is true?
Find the rows where the output is 1 and describe what is true of the inputs 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 2 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.