Logic Gates and Boolean Algebra | AQA A Level Physics notes
Free preview: Logic Gates and Boolean Algebra
Logic Gates
Combinational logic
A logic gate takes one or more digital inputs (each 0 or 1) and gives a digital output. In combinational logic the output depends only on the inputs right now, not on what happened before. We describe a gate with a truth table: every possible combination of inputs and the output for each.

Following the diagram, gate by gate:
| Gate | Output is 1 when… | Boolean expression |
|---|---|---|
| AND | both A and B are 1 | |
| OR | A or B (or both) is 1 | |
| NOT | A is 0 (it inverts) | |
| NAND | NOT AND: unless both are 1 | |
| NOR | NOT OR: only when both are 0 | |
| EOR (XOR) | the inputs are different |
💡 Read the symbols as words
means AND, means OR, a bar over something means NOT, and means exclusive OR. A small circle (bubble) on a gate symbol means the output is inverted.
Combining Gates

Following the diagram: A and B go into an AND gate, giving . C goes into a NOT gate, giving . X and Y go into an OR gate, so .
How to build the truth table
- With 3 inputs there are rows. List them in binary order: 000, 001, … , 111.
- Add a column for each intermediate point (X, Y).
- Fill each column one gate at a time, then the output.
| A | B | C | X = A·B | Y = C̄ | Q = X + Y |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Electronic
- The MOSFET
- The Zener Diode
- The Photodiode
- The Hall Effect Sensor
- Analogue and Digital Signals
- Sampling and Quantisation
- LC Resonance Filters
- The Operational Amplifier and the Comparator
- Inverting and Non-inverting Amplifiers
- Summing and Difference Amplifiers
- Real Op-amps: Saturation and Frequency Response
- Logic Gates and Boolean Algebra
- Flip-flops and Counters
- Astable and Monostable Circuits (555 Timer)
- Communication Systems and Transmission Media
- AM, FM and Time-Division Multiplexing
What's inside for this topic
16 teacher notes, 279 practice questions, 28 flashcards, 6 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Real Op-amps: Saturation and Frequency Response Next note: Flip-flops and Counters