BASIC ELEMENTS
At a top level, a computer consists of processor, memory, and I/O components, with one or more modules of each type. These components are interconnected in some fashion to achieve the main function of the computer, which is to execute programs. Thus, there are four main structural elements:
• Processor: Controls the operation of the computer and performs its data processing functions. When there is only one processor, it is often referred to as the central processing unit (CPU).
• Main memory: Stores data and programs. This memory is typically volatile; that is, when the computer is shut down, the contents of the memory are lost. In contrast, the contents of disk memory are retained even when the computer system is shut down. Main memory is also referred to as real memory or primary memory.
• I/O modules: Move data between the computer and its external environment. The external environment consists of a variety of devices, including secondary memory devices (e. g., disks), communications equipment, and terminals.
• System bus: Provides for communication among processors, main memory, and I/O modules. One of the processor’s functions is to exchange data with memory. For this purpose, it typically makes use of two internal (to the processor) registers (MAR), which specifies the address in memory for the next read or write. (MBR), a memory buffer register which contains the data to be written into memory or which receives the data read from memory. Similarly (I/OAR) I/O address register specifies a particular I/O device.
An I/O buffer register (I/OBR) is used for the exchange of data between an I/O module and the processor.
PROCESSOR REGISTERS
A processor includes a set of registers that provide memory that is faster and smaller than main memory. Processor registers serve two functions:
• User-visible registers: Enable the machine or assembly language programmer to minimize main memory references by optimizing register use. For high- level