How a Computer Adds: First of all you need to know that a computer manipulates all of its information in the for of different combinations of 0s and 1s. Transistors are used throughout the computer for different operations, transistors are like switches they are either off (open) or on (closed) which corresponds to 0s and 1s respectively to the state of the transistor. When the transistor is closed a signal from a device called the computers clock passes through. The clock determines how fast the computer works, this is measured in megahertz (millions of ticks per second) and the faster the clock the faster the computer. One transistor can affect another in that if it is open or closed the current will not or will pass on to the next transistor, this is called a gate. There are several types of gates:
The AND gate and XOR gate are taken and combined to make half-adders. These are placed to form full-adders along with OR and NOT gates. Each number in a calculation is given a full-adder, computers today have 32 full-adders. Remember that the computer uses binary to do the calculation but when it is done it outputs it as a regular number. |