02 Basic Structure of Computer
02 Basic Structure of Computer
5. A.L.U
Input Output
A.L.U C.U
Memory
1. Input: - computer accepts coded information through
input devices the most well known input device is
keyboard, which is electronically, connected to C.P.U.
many other kinds of input devices is joysticks, track
ball and mouse.
2. Memory: - The function of the memory is to store data
and program (details of memory is explained in other
chapter)
3. Output: -The output is the counter part of input device.
Its function is to send processed data to the outside
world. Such output devices are monitor, printer,
plotters etc…
4. Control units: -Its function is to control the functions
of input and output devices. The C.U is effectively the
nerve center that sends control signals to other units
and senses their states. Data transfer between the
processor and memory is controlled by the C.U
through timing signals. A large set of wires carries the
signals to all units.
5. Arithmetic and logic unit (A.L.U): -Most computer
operations are executed in the A.L.U of the processor.
Any other operations are initiated by bringing the
required operands into the A.L.U where the necessary
operations are performed.
Main memory
MAR MDR
Control
R0
PC R1
R2
ALU
IR Rn-1
BUS STRUCTURES
To form an operational system, these different individual parts of computer must be
connected together in some organized way. There are many ways of doing it. Now, we
will consider three popular structures. If computer is to achieve a reasonable speed of
operation, it must be organized so that all units can handle one full word of data at a
given time. When a word of data is transferred between units, all its bits are transferred in
parallel. This requires a considerable number of wires to establish the necessary
connections.
A simplest structure, which has a single bus, is as shown in the above diagram. All units
are connected to this bus, so it provides the sole means of interconnection. Because the
bus can be used for only one transfer at a time, only two units can actively use the bus at
any given instant. Bus control lines are used to arbitrate multiple requests for use of this
bus. The main virtue of the single bus structure is its low cost and flexibility for attaching
peripheral devices, but the trade-off is lower operating speed. It is not surprisingly that a
single-bus structure is primarily found in small machines, namely minicomputers and
microcomputers.
TWO BUS STRUCTURE
I/O bus
Input Memory
bus
Processor Memory
Output
The figure above shows the simplest form of a two bus structure. The processor interacts
with the memory through a memory bus and handles input and output functions over an
I/O bus. Data passes through the processor on its way to the memory. In such
configurations the I/O transfers are usually under direct control of the processor, which
initiates transfers and monitors their progress until completion.
A different version of a two bus structure is given in the figure below. Here the position
of the processor and memory are reversed. Again a memory bus exists for
communication between them; both I/O transfers are made directly to or from the
memory. Since the memory lacks adequate circuitry to control such transfers, it is
necessary to establish a different control mechanism. A standard technique is to provide
the necessary control circuitry as part of the I/O equipment, in circuits called I/O
channels. An I/O channel is actually a special purpose processor, also called as Peripheral
Processor. The main processor initiates a transfer by passing the required information to
the I/O channel. The channel then takes over and controls the actual transfer of data.
I/O bus
Input Memory
bus
Memory Processor
Output
Some machines have several distinct buses, but their operation is adequately represented
by the two bus examples. The main reason for including additional buses is to improve
the operating speed through more parallelism. From the conceptual point of view, they
are not crucial in any functional description. The fundamental principles of computer
operation are essentially independent of bus structure.
In general, transfer of information over a bus cannot be done at a speed comparable to the
operating speed of all devices connected to the bus. Some electromechanical devices are
relatively slow, such as keyboards and printers, but others, like disks and tapes, are
considerably faster. Main memory and processors operate at electronic speeds, making
them fastest parts of the computer. Because all these devices must communicate with
each other over a bus, an efficient transfer mechanism that is not constrained by the slow
devices and that can be used to smooth out the differences in timing among processors,
memories, and external devices is necessary.