English
English
processing unit (CPU), the main memory, and the input/output subsystem. The next three sections
discuss these subsystems and how they are connected to make a standalone computer
The central processing unit (CPU) performs operations on data. In most architectures it has three
parts: an arithmetic logic unit (ALU), a control unit, and a set of registers,
The arithmetic logic unit (ALU) performs logic, shift, and arithmetic operations on data.
Registers Registers are fast stand-alone storage locations that hold data temporarily. Multiple
registers are needed to facilitate the operation of the CPU. Some of these registers are shown in
Figure
The control unit The third part of any CPU is the control unit. The control unit controls the
operation of each subsystem.
is achieved through signals sent from the control unit to other subsystems
Main memory is the second major subsystem in a computer . It consists of a collection of storage
locations,
INPUT/OUTPUT SUBSYSTEM
The third major subsystem in a computer is the collection of devices referred to as the
input/output (I/O) subsystem. This subsystem allows a computer to communicate with the outside
world, and to store programs and data even when the power is off. Input/output devices can be
divided into two broad categories: nonstorage and storage devices.
Nonstorage devices allow the CPU/memory to communicate with the outside world, but
=Printer
Storage devices, although classified as I/O devices, can store large amounts of information
PROGRAM EXECUTION
data. A computer executes the program to create output data from input data. Both the
Machine cycle
The CPU uses repeating machine cycles to execute instructions in the program, one by
Fetch
In the fetch phase, the control unit orders the system to copy the next instruction
into the instruction register in the CPU.