A1.2.5 Drawing logic circuits
SL + HLCommand term: Construct1. 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.
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:
- Identify the standard symbols for the AND, OR, NOT, NAND, NOR, XOR and XNOR gates.
- Construct a logic diagram from a Boolean expression or a problem description.
- Determine the Boolean expression and truth table represented by a logic diagram.
- Explain how gates are combined to perform more complex logical operations.
- 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
- Find the operation that is done last (outside all the brackets). That gate goes on the far right, feeding the output.
- Work backwards (right to left): each bracket becomes another gate feeding the inputs of the one after it.
- Connect the inputs A, B and C on the left, using joining dots when an input is needed more than once.
- Remember the order of operations: brackets, then NOT, then AND, then OR.
Diagram → expression or truth table
- Label the output of every gate (e.g. P, Q, R) and write an expression for each, working left to right.
- Substitute the expressions into the final gate to get the full expression.
- 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.
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]
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]
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]
4. A circuit implements Q = (A AND B) OR (A AND NOT B). Simplify the expression and describe the effect on the circuit. [3]
5. Show how a NOT gate can be made from a single NAND gate, and explain why this matters. [2]