Logic circuits and expressions
About this lesson: Logic circuits and expressions
In short
A logic circuit joins gates. Work out each gate's output in turn. Tap A, B and C and watch the row of the truth table light up.

What you'll explore
- Reading a circuit: Left to right
- A logic circuit joins gates. Work out each gate's output in turn. Tap A, B and C and watch the row of the truth table light up.
- NOT in a circuit: Flip one input first
- Here C goes through a NOT gate before the AND. Try all eight combinations.
- NAND in a circuit: An inverted AND
- This circuit uses NAND. When is X = 1?
- From a problem to logic: All conditions at once
- A real problem can be written as a logic expression. Answer the questions, then run it.
- Check yourself: Evaluate
- X = (A AND B) OR C. Inputs: A = 1, B = 0, C = 0.
Also in this lesson
- Step by step
- Watch out for these
- Completing a truth table
- More than the lesson
- Stretch your brain
- Try it yourself
Words to know
- Logic circuit
- Gates connected together.
- Logic expression
- A formula like X = (A AND B) OR C.
- Intermediate output
- The output of a gate inside a circuit.
- Input combination
- One set of input values, like 101.
Sources
- Raspberry Pi Foundation, Isaac Computer Science: Boolean logic
- Nand2Tetris: The Elements of Computing Systems, chapter 1
- BBC Bitesize, GCSE Computer Science: logic circuits
- Khan Academy: logic gates