Activity 7 - The Frog's bridge (Different values with AND/OR/NOT)

Nuvi dressed as a frog

Introduction

The Frog guards a bridge with a precise rule:

“Only those carrying exactly one lit torch may cross.
If you carry none or both, the bridge closes.”


Decorative pattern for the logic workshop

Logical goal

Build an output that equals 1 when A and B are different.
It is built using only AND, OR, and NOT:

See full truth table
ABA OR BA AND BNOT(A AND B)Output
000010
011011
101011
111100

Landscape of the lake in the forest

Simulator instructions

1. Place

Visual example of the XOR circuit using AND, OR, and NOT with two inputs and one output

2. Connect

  1. A and B ➔ OR: OR_AB
  2. A and B ➔ AND1: AND_AB
  3. AND_ABNOT: NOT_AND_AB
  4. OR_AB and NOT_AND_ABAND2
  5. AND2Output

3. Test

Victory condition: output = 1 when A ≠ B.


Quick tips


Simulator


What did you learn?