CPU
Computer's brain.
CPU is the hardware within a computer that carries out the instructions of a computer program by performing the basic arithmetical, logical, and input/output operations of the system.
There are four steps that a CPU use in its operation.
- Fetch
- Decode
- Execute
- Writeback
Fetch
The first step, fetch, involves retrieving an instruction from program memory. The instruction that the CPU fetches from memory is used to determine what the CPU is to do.
Decode
In the decode step, the instruction is broken up into parts that have significance to other portions of the CPU.
Execute
After the fetch and decode steps, the execute step is performed. During this step, various portions of the CPU are connected so they can perform the desired operation.
Writeback
The final step, writeback, simply "writes back" the results of the execute step to some form of memory.
If, for instance, an addition operation was requested, the logic unit will be connected to a set of inputs and a set of outputs. The inputs provide the numbers to be added, and the outputs will contain the final sum.
|