OR gate

In the last tutorial, we met the AND gate. Now we’ll look at a similar logic gate.

The OR gate takes two inputs, and outputs 1 if at least one input is 1. In other words, it needs the left input or the right input (or both).

00/0000/00
loading…

or gate

Wait a second — isn’t this the same as our AND Gate?

Conveniently, a turn’s left output behaves like an AND, while the right output behaves like an OR.

The turn turn is a very versatile . It can:

  • Turn marbles around
  • Move marbles sideways
  • Act as an AND gate
  • Act as an OR gate

Now we’ve seen an AND and OR Gate, it’s time to start stitching together to make a more advanced gate.

challenge

Our OR Gate outputs a 1 when it receives either input or both. Can you build a pattern that outputs a 1 if it receives either input, but not both? i.e. Satisfy the truth table .

continue