You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
In real computer circuits, individual logic gates are combined to create more complex operations. OCR J277 Section 2.5 requires you to be able to trace through combined logic gate circuits, complete truth tables for multi-gate circuits, and write Boolean expressions from circuit diagrams.
A logic circuit (also called a combinational circuit) connects the output of one gate to the input of another. By chaining gates together, we can create circuits that implement complex Boolean expressions.
For example, to implement the expression Q = (A AND B) OR C, we need:
A ----+ +
| AND |---+
B ----+ + |
+---+ +
| | OR |---- Q
C ----------------+ + +
To determine the output of a combined circuit for given inputs, follow these steps:
Consider the circuit: Q = NOT (A OR B)
With A = 1, B = 0:
| Step | Operation | Result |
|---|---|---|
| 1 | A OR B | 1 OR 0 = 1 |
| 2 | NOT (result of step 1) | NOT 1 = 0 |
So Q = 0.
OCR Exam Tip: When tracing through a circuit, work through one gate at a time, writing down intermediate results. Do not try to calculate the whole circuit in your head — this leads to errors.
To build a truth table for a circuit with multiple inputs, you need columns for:
Circuit: Q = (A AND B) OR (NOT A)
| A | B | A AND B | NOT A | Q = (A AND B) OR (NOT A) |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 OR 1 = 1 |
| 0 | 1 | 0 | 1 | 0 OR 1 = 1 |
| 1 | 0 | 0 | 0 | 0 OR 0 = 0 |
| 1 | 1 | 1 | 0 | 1 OR 0 = 1 |
The intermediate columns (A AND B and NOT A) make it much easier to get the correct final answer.
When a circuit has three inputs (A, B, C), the truth table has 2^3 = 8 rows:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.