ViewWiki

Unit 2

Logic gates.

AND, OR, NOT and XOR, truth tables, and how a few gates add two numbers, up to a processor's arithmetic unit.

Before this unit

The unit, lesson by lesson

Lessons

4 lessons · 21 practice questions · about 2 hours

  1. AND, OR and NOT

    The three basic gates: AND needs both inputs, OR settles for one, NOT flips; and how to choose a gate for what a circuit has to do.

    About 20 minutes 5 practice questions

  2. Truth tables

    A table that describes a gate completely: a row for every combination of inputs, the columns of AND, OR and XOR, gates built from gates, and how many different gates there are at all.

    About 25 minutes 6 practice questions

  3. A half adder

    Gates that compute: adding two bits, a carry that is AND and a sum that is XOR, how the NOT blocks the sum at 1 + 1, and why it is only half an adder.

    About 20 minutes 5 practice questions

  4. A full adder and the processor

    Three bits in a column: the full adder, eight of them in a row in a processor's arithmetic unit, binary addition with carries, and what happens when the sum does not fit in a byte.

    About 25 minutes 5 practice questions

Next unit How a computer runs a program