Home › Theme A › A1 › A1.2 › A1.2.5

A1.2.5 Drawing logic circuits

SL + HLCommand term: Construct

1. Expression → logic diagram

Type a Boolean expression with inputs A, B and C. The page draws the logic diagram with standard gate symbols. Click the A, B, C switches to change the inputs, or use Trace to follow the signal through one gate at a time.

Examples:
Operators: AND (· * &), OR (+ |), NOT (¬ ! or A'), XOR (^), NAND, NOR, XNOR, brackets. AND and OR chains like A AND B AND C are drawn as one 3-input gate.

2. Read the diagram

Which Boolean expression does this logic diagram represent? Click the switches to test it first.

Score: 0 / 0

3. Simplify a circuit

Boolean algebra can turn a large circuit into a smaller one that does exactly the same job with fewer gates, so it is cheaper, faster and uses less power. Choose a circuit, then click Next step.

Before

After

Learning objectives

By the end of this page you should be able to:

  1. Identify the standard symbols for the AND, OR, NOT, NAND, NOR, XOR and XNOR gates.
  2. Construct a logic diagram from a Boolean expression or a problem description.
  3. Determine the Boolean expression and truth table represented by a logic diagram.
  4. Explain how gates are combined to perform more complex logical operations.
  5. Simplify logic diagrams using Boolean algebra so that fewer gates are needed.

What is a logic diagram?

A logic diagram is a drawing of a digital circuit. Inputs are on the left, signals flow left to right through the gates, and the output is on the right. Lines are wires. A dot (●) where wires meet means they are joined, so one input can feed several gates.

Standard symbols

Remember: a small circle (bubble) on the output means NOT, and an extra curved line at the back of OR means exclusive (XOR).

Expression → diagram

  1. Find the operation that is done last (outside all the brackets). That gate goes on the far right, feeding the output.
  2. Work backwards (right to left): each bracket becomes another gate feeding the inputs of the one after it.
  3. Connect the inputs A, B and C on the left, using joining dots when an input is needed more than once.
  4. Remember the order of operations: brackets, then NOT, then AND, then OR.

Diagram → expression or truth table

  1. Label the output of every gate (e.g. P, Q, R) and write an expression for each, working left to right.
  2. Substitute the expressions into the final gate to get the full expression.
  3. For a truth table, add a column for each labelled gate output, then the final output.

Simplifying a diagram

Write the expression, simplify it with Boolean algebra (or a K-map, see A1.2.4), then draw the new diagram. Check with a truth table that both circuits give identical outputs. A useful fact: any circuit can be built from only NAND gates (or only NOR gates), which makes chips easier to manufacture.

Exam tip: draw gates with a ruler-straight back and a clear curve, label every input, and don't let wires cross without a clear gap or bridge. Only draw a dot where wires really join.

Use the 中文 button at the top to show or hide the Chinese terms.

Term中文Meaning

Choose an answer. You get instant feedback.

Score: 0 /

Write (or draw) your answer first, then reveal the markscheme. These are exam-style practice questions written for this site.

1. Draw a logic diagram for Q = (A AND B) OR NOT C. [3]

AND gate with inputs A and B [1]; NOT gate on input C [1]; both outputs go into an OR gate whose output is Q [1]. Check your drawing in activity 1.

2. A logic diagram has an OR gate with inputs A and B, whose output goes into an AND gate together with NOT C. Write the Boolean expression and state the output when A = 0, B = 1, C = 0. [2]

Q = (A OR B) AND NOT C [1]; A OR B = 1, NOT C = 1, so Q = 1 [1].

3. Construct a logic diagram for a burglar alarm: the siren S sounds if the alarm is armed (A) and either the door (D) or the window (W) is open. [3]

OR gate with inputs D and W [1]; AND gate combining A with the OR output [1]; correctly labelled output S [1]. S = A AND (D OR W).

4. A circuit implements Q = (A AND B) OR (A AND NOT B). Simplify the expression and describe the effect on the circuit. [3]

A·B + A·B = A·(B + B) (distributive) [1]; = A·1 = A (complement, identity) [1]; the circuit needs no gates at all: Q is simply connected to A, so 4 gates are removed [1].

5. Show how a NOT gate can be made from a single NAND gate, and explain why this matters. [2]

Connect input A to both inputs of the NAND gate: A NAND A = NOT (A AND A) = NOT A [1]; it shows NAND is universal, so whole circuits can be built from one type of gate, simplifying manufacture [1].