A1.2.5 — Logic Diagrams

← Back to A1.2 overview

What is a Logic Diagram?

A logic diagram is a visual representation of connected logic gates showing how inputs are processed to produce an output. They are read left to right. They can be directly transposed into electronic circuits — they are blueprints for physical circuits.

  • Inputs enter from the left — labelled with letters (A, B, C) or descriptive names.
  • Output leaves from the right — always labelled Q.
  • A dot on a wire means it connects to every gate it touches.
  • Each gate's output can become the input to the next gate.

Building a Diagram from a Problem

  1. Identify all inputs and label them.
  2. Identify the output Q.
  3. Translate the logical conditions into gate operations.
  4. Draw gates and connect them left to right.

Karnaugh Maps (K-maps)

A visual method for simplifying Boolean expressions. Instead of algebraic manipulation, you group 1s on a grid and read off the simplified terms.

What you need to know

  • K-maps work with up to 4 inputs. IB typically uses 2 or 3.
  • Row and column labels use Gray code — adjacent cells differ by exactly 1 bit: 00 → 01 → 11 → 10. This is NOT binary order.
  • Fill each cell with the Q value from your truth table for that combination of inputs.
  • Group only the 1s. Groups must be rectangles of size 1, 2, 4, or 8 (powers of 2 only).
  • Make each group as large as possible — bigger group means fewer variables and a simpler expression.
  • Groups can overlap and can wrap around edges — treat the map as if the top joins the bottom and the left joins the right.
  • Every 1 must be in at least one group. No 0s allowed in a group.
  • For each group: variables that stay constant across the whole group are kept. Variables that change within the group are dropped.
  • OR all group terms together to get your simplified expression.

K-map layout (3 inputs: A, B, C)

BC \ AA=0A=1
BC=00row 0row 1
BC=01row 2row 3
BC=11row 6row 7
BC=10row 4row 5

Each cell number is the minterm from your truth table. Fill it with the Q value for that row.

Practice Exercises

Truth table:

ABQ
000
011
101
111

Fill the K-map and identify groups:

B \ AA=0A=1
B=0??
B=1??
B \ AA=0A=1
B=001
B=111
  • Bottom row group (B=1, both A values): B stays 1, A changes → term is B
  • Right column group (A=1, both B values): A stays 1, B changes → term is A
Simplified expression: Q = A OR B

Truth table:

ABCQ
0000
0011
0100
0111
1000
1011
1100
1111

Fill the K-map and simplify:

BC \ AA=0A=1
BC=0000
BC=0111
BC=1111
BC=1000
  • Group of 4 (rows BC=01 and BC=11): C stays 1 throughout, A and B both change → drop A and B
Simplified expression: Q = C

Q = 1 for minterms 0, 1, 4, 5. Fill the K-map and find the simplified expression.

BC \ AA=0A=1
BC=0011
BC=0111
BC=1100
BC=1000
  • Group of 4 (top two rows): B stays 0 throughout, A and C both change → drop A and C
Simplified expression: Q = NOT B
To remember: