Skip to content
Tactiverge

Instructor guide · Week 4 of 6

Digital Logic and Computational Architecture

Week 4 moves from the physical world to computation. Students learn that everything a processor does is built from gates that combine 0s and 1s, and that a truth table is a complete specification: if every row is right, the circuit is right.

The live session runs from binary counting to gates, then to the logic lab, where students build a majority vote and meet NAND's universality. The new mission, The Three-Sensor Interlock, asks them to turn a written safety rule into logic, add a sensor-disagreement output and trace stuck-at faults.

Keep the mission's framing honest. It is a paper exercise about how logic captures a rule. Real machine safety is designed to published standards with certified components and independent review, and the mission says so.

Link the week to architecture without overreaching: a full adder adds three bits; chained adders add numbers; adding memory and a clock (sequential logic, covered in the lessons) gives registers and, eventually, the blocks inside a microcontroller. The lab has no delay or memory, which is a useful limitation for students to name.

Students who are strong at algebra may race ahead; ask them for the shortest circuit and a proof that their two versions match. The week's assessment id is week-4.

Learning objectives

  • Students can convert whole numbers between binary and decimal and state the largest value n bits can hold.
  • Students can write the complete truth table for a circuit of up to three inputs and match it to a Boolean expression.
  • Students can build and verify a majority vote and a half adder in the logic lab.
  • Students can trace a stuck-at fault through a circuit and decide whether the result is safe, reported or missed.
  • Students can describe how gates, adders and memory combine into the main blocks of a microcontroller.

Preparation

  • Complete the four preparatory lessons, both logic experiments and The Three-Sensor Interlock.
  • Build the majority vote, a half adder and the mission's FAULT output in the logic lab, and check each truth table.
  • Prepare the truth tables for AND, OR, NOT and XOR as spoken lists for students using screen readers.
  • Check that your shared screen shows the lab's truth table at a readable size.
  • Confirm the adult supervisor and the chat moderation settings.

Students prepare with: Binary, hexadecimal and digital signals; Logic gates and Boolean algebra; Combinational logic: adders, multiplexers and decoders; Inside a microcontroller. Mission: The Three-Sensor Interlock.

Run of show (60 minutes)

  1. 5 min

    Welcome and recap

    Ask: when should a robot reject a sensor reading? Use the answers to introduce rules that can be written exactly.

  2. 10 min

    Bits, binary and why computers use two levels

    Count in binary together from 0 to 15. Convert 1101 to 13. Explain that two well-separated voltage levels are easy to tell apart even with noise.

  3. 15 min

    Gates and truth tables

    Introduce AND, OR, NOT and XOR with truth tables given as lists. Stress that OR includes the case where both inputs are 1.

  4. 15 min

    Logic lab: majority vote and NAND

    Share the logic lab. Build the majority-of-three circuit together and read the truth table. Then show that NAND alone can make NOT, and set XOR from NAND as a challenge.

  5. 10 min

    Mission launch: The Three-Sensor Interlock

    Read the brief together. Emphasise that it is a paper exercise and that real safety systems follow standards and use certified parts. Introduce the stuck-at fault model.

  6. 5 min

    Reflection and exit question

    Ask: why does the door have three sensors rather than two?

Common misconceptions

“OR means one or the other, but not both.”
In logic, OR is inclusive: it is 1 when either or both inputs are 1. The exclusive version is a different gate, XOR. Show the two truth tables side by side and point to the 1, 1 row.
“1 + 1 = 2 for a single bit.”
A bit can only hold 0 or 1, so 1 + 1 gives a sum bit of 0 and a carry of 1: binary 10. That is exactly what a half adder computes, with XOR for the sum and AND for the carry.
“NAND is just a less useful version of AND.”
NAND is universal: NOT, AND, OR and every other function can be built from NAND gates alone. Show NOT from one NAND with both inputs tied together, then let students try XOR.
“Logic gates switch instantly in real hardware.”
Real gates take a short time to respond, so outputs can glitch briefly while signals change. The lab is ideal and ignores this, which is why real designs use clocks to sample signals only once they have settled.

Discussion questions

  1. Why is a truth table a complete specification for a combinational circuit, but not for one with memory?
  2. Why does a safety system with three sensors still need a way to report disagreement?
  3. When is a slightly larger circuit better than the smallest possible one?
  4. How does a circuit that adds two bits relate to the processor in a phone?

Support and stretch

  • No hardware: every task in the week can be completed on paper, with a calculator or in the browser lab, so no student needs equipment.
  • Low bandwidth: students can join by audio only or follow the moderated chat, and the printable worksheet covers the session's core tasks so the lab can be done later on a better connection.
  • Screen readers: describe every diagram, graph and lab state aloud and in the chat, and give tables as lists. If a lab's controls are hard to use with a screen reader, the worksheet's paper tasks cover the same objective and count equally.
  • Support: give truth-table templates with the input columns already filled in counting order, and let students build each circuit one gate at a time in the lab.
  • Stretch: ask students to find the fewest two-input gates for the majority vote and explain why their circuit matches the original in every row.

Supervision and online safety

Every live session runs with an adult supervisor present for the whole hour, and no student is ever alone in a session or breakout room with an adult. Students join with a first name or nickname only and never share personal information such as surnames, schools, addresses, phone numbers, social media handles or photos of themselves. Cameras and microphones are optional; typing in the moderated chat is always an equal way to take part. Sessions are not recorded unless every family has agreed in advance. No hardware is needed this week: every activity works on paper, with a calculator, in the browser lab or in free Python. The mission discusses a machine interlock as a thinking exercise only: students must never modify or bypass a guard or interlock on any real machine, and should work near real equipment only with adult supervision.

Assessment

Students take the before check before the live session and the after check at the end of the week (signed-in, about 20–30 minutes each). Choice and number questions are scored automatically; one written explanation per form is scored 0–3 by a founder in Admin → Assessments. Missions are reviewed against the weekly rubric on the week page.

CC BY 4.0. Adapt freely; keep the supervision and privacy rules.