flwr001.gif (2657 bytes)

The Basics of Digital Logic

Lesson 1

Believe it or not, computers are constructed from a few simple circuits known as Gates. In fact, one can construct a whole computer using only three types of circuits, the AND Gate,the  OR Gate and the NOT Gate.  Computer circuits are built by wiring many, many of these gates together.  Some circuits are small, containing only a few gates, while others may have hundreds or even thousands of gates.

Gates are simple circuits; so simple that it is possible to ignore the details of voltages and currents and focus on the behavior of the circuit.  The wires that are used to connect gates together are assumed to carry either a one or a zero. (You may have heard that computers use only the digits one and zero in their internal calculations.)  In reality, these wires carry high and low voltages to represent the ones and zeros, but we can ignore this for now.

There are two kinds of wires that can be attached to a gate, input wires and output wires.  Input wires carry the ones and zeros into a gate, while the output wires carry the ones and zeros out of the gate.  Most gates have only a single output wire, but may have several input wires. The values on the output wires depend on the type of the gate and the values on the input wires.

Now let's take a look at the different types of gates. Each different kind of gate is represented by a specially shaped symbol. When a circuit is drawn, these symbols are used to represent the gates and show how they are wired together.  We will use the small window below to illustrate the shapes used for AND, OR, and NOT gates.  Click on the following button to see the shape for the AND gate.