Week 2 · Lesson 3 · 55 minutes

Follow a combined circuit

I can connect a truth table, expression and circuit.

Planned lesson. Follow your teacher’s teaching order.

Source workbook pages: 14.

Resources

Vocabulary

Vocabulary
intermediate: a value found before the final output; trace: follow values one step at a time
55-minute lesson sequence
  1. 0–5 · Retrieve equality at 00.
  2. 5–15 · Model one row with named intermediate signals.
  3. 15–25 · Build the first two rows and the wire structure together.
  4. 25–45 · Students complete six rows and the safe-rule program independently.
  5. 45–50 · Compare output at the locked case and repair parentheses.
  6. 50–55 · Collect the full-coverage exit reason.

Try before notes

What does XNOR output for 0 and 0?

Build the idea

A combined circuit is a chain of small decisions. Name each intermediate wire. That name becomes a column in your truth table, so an error can be located rather than guessed.

Parentheses show which signals are combined first. For (A AND B) OR C, compute A AND B before combining that result with C. For A AND (B OR C), a different pair is combined first.

Three Boolean inputs require eight rows. A program test can help check the rows, but it does not replace explaining how a gate produces its output.

A ─┐
   AND → X ─┐
B ─┘        OR → Y
C ──────────┘

See the method

For Y = (A OR B) AND NOT C, find X = A OR B and N = NOT C first. With A=0, B=1, C=0: X=1, N=1 and Y=1. Intermediate columns reduce guessing. Three inputs need 2^3 = 8 rows.

Predict then reveal

For Y=(A AND B) OR C, trace A=0,B=1,C=1.

Reveal reasoning

X=0 AND 1=0. Y=X OR C=0 OR 1=1. C can make this output true even when A is false.

Do (A AND B) OR C and A AND (B OR C) always agree? Use A=0,B=0,C=1.

Reveal reasoning

First: (0 AND 0) OR 1=1. Second: 0 AND (0 OR 1)=0. This one counterexample disproves equivalence.

Work one step together

Read the first task. Each learner predicts the first step privately. Compare the method, then complete one intermediate row or one code iteration together. Do not display a finished workbook answer.

Practice

  1. Use rows ABC = 000,001,010,011,100,101,110,111. Add X=A OR B, N=NOT C and Y=X AND N. Draw the connected standard gates. A | B | C | X | N | Y 0 | 0 | 0 | | | 0 | 0 | 1 | | | 0 | 1 | 0 | | | 0 | 1 | 1 | | | 1 | 0 | 0 | | | 1 | 0 | 1 | | | 1 | 1 | 0 | | | 1 | 1 | 1 | | |

Your turn

Complete the remaining steps of task 1 alone, then the next tasks. Predict before running code. Save your own evidence before comparing.

Practice

  1. Use rows ABC = 000,001,010,011,100,101,110,111. Add X=A OR B, N=NOT C and Y=X AND N. Draw the connected standard gates. A | B | C | X | N | Y 0 | 0 | 0 | | | 0 | 0 | 1 | | | 0 | 1 | 0 | | | 0 | 1 | 1 | | | 1 | 0 | 0 | | | 1 | 0 | 1 | | | 1 | 1 | 0 | | | 1 | 1 | 1 | | |
  2. A safe opens when key K is valid OR override O is on, but never when locked L is 1. Write the expression and test all eight cases in Python. Explain the case K=1,O=1,L=1.

Check and explain

A correct final output can hide an incorrect intermediate step. Show the intermediate columns.

Point to the first step, row, condition or requirement that supports your answer. If results differ, find the first different state and repair one cause.

Show what you know

Why should every input combination appear in the table?

HL challenge when ready

Give one input where K OR (O AND NOT L) differs from the safe rule.

Week 2 homework

Show working. Keep code and output. Stop at 25 minutes and mark where you reached.

  1. Make a truth table for Y=(A AND B) OR NOT C. Show intermediate columns and all eight rows.
  2. Draw Y using standard gate symbols. Write a Python expression with the same meaning.
  3. Simplify (X AND Y) OR (NOT X AND Y). Use algebra and a two-variable Karnaugh map.
  4. A learner says XOR and OR are always equal. Give one counterexample.

Source workbook pages: 17.

Weekly homework (Word)

Python practice · two short prompts

Spend about 3 minutes on each during practice time. Predict, run, change one thing, then explain. These prompts do not add homework.

A starter is runnable code to explore or complete. If the playground restores your saved code, the linked starter is selected in Example: use Load example when ready. Download your work before confirming replacement.

Prompt 1

Trace the intermediate wire before the final output. Try all input combinations.

No imports needed.

Hint and starter code

Change one value, predict the output, then run and explain any difference.

# Trace the printed values to check each step before changing an input.
a, b, c = True, False, True
wire = a or b
output = wire and c
print(wire, output)
Open this starter in Python playground →
Prompt 2

Compare two bracket placements and find an input where the outputs differ.

No imports needed.

Hint and starter code

Print intermediate values to locate the changed grouping.

# Print intermediate values to locate the changed grouping.
a, b, c = True, False, False
print((a or b) and c)
print(a or (b and c))
Open this starter in Python playground →