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.

Symbols, Boolean expressions and truth tables for the AND, OR, NOT, NAND, NOR and EOR gates

Following the diagram, gate by gate:

GateOutput is 1 when…Boolean expression
ANDboth A and B are 1Q=A·B
ORA or B (or both) is 1Q=A+B
NOTA is 0 (it inverts)Q=A―
NANDNOT AND: unless both are 1Q=A·B―
NORNOT OR: only when both are 0Q=A+B―
EOR (XOR)the inputs are differentQ=A⊕B

💡 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

A and B go into an AND gate giving X; C goes into a NOT gate giving Y; X and Y go into an OR gate giving Q

Following the diagram: A and B go into an AND gate, giving X=A·B. C goes into a NOT gate, giving Y=C―. X and Y go into an OR gate, so Q=A·B+C―.

How to build the truth table

  1. With 3 inputs there are 23=8 rows. List them in binary order: 000, 001, … , 111.
  2. Add a column for each intermediate point (X, Y).
  3. Fill each column one gate at a time, then the output.
ABCX = A·BY = C̄Q = X + Y
000011
001000
010011
011000
100011
101000
110111
111101

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.

Log in · Subscribe · Start free trial

All notes in Electronic

  1. The MOSFET
  2. The Zener Diode
  3. The Photodiode
  4. The Hall Effect Sensor
  5. Analogue and Digital Signals
  6. Sampling and Quantisation
  7. LC Resonance Filters
  8. The Operational Amplifier and the Comparator
  9. Inverting and Non-inverting Amplifiers
  10. Summing and Difference Amplifiers
  11. Real Op-amps: Saturation and Frequency Response
  12. Logic Gates and Boolean Algebra
  13. Flip-flops and Counters
  14. Astable and Monostable Circuits (555 Timer)
  15. Communication Systems and Transmission Media
  16. 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.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Real Op-amps: Saturation and Frequency Response Next note: Flip-flops and Counters

All AQA A Level Physics topics · A Level Physics