Functional Components of A Computer
Functional Components of A Computer
There are a few basic components that aids the working-cycle of a computer i.e. the
Input- Process- Output Cycle and these are called as the functional components of a
computer. It needs certain input, processes that input and produces the desired
output. The input unit takes the input, the central processing unit does the
processing of data and the output unit produces the output. The memory unit holds
the data and instructions during the processing.
● Input Unit :The input unit consists of input devices that are attached to the
computer. These devices take input and convert it into binary language that the
computer understands. Some of the common input devices are keyboard, mouse,
joystick, scanner etc.
● Central Processing Unit (CPU) : Once the information is entered into the
computer by the input device, the processor processes it. The CPU is called the
brain of the computer because it is the control center of the computer. It first
fetches instructions from memory and then interprets them so as to know what is
to be done. If required, data is fetched from memory or input device. Thereafter
CPU executes or performs the required computation and then either stores the
output or displays on the output device. The CPU has three main components
which are responsible for different functions – Arithmetic Logic Unit (ALU),
Control Unit (CU) and Memory registers
● Arithmetic and Logic Unit (ALU) : The ALU, as its name suggests performs
mathematical calculations and takes logical decisions. Arithmetic calculations
include addition, subtraction, multiplication and division. Logical decisions involve
comparison of two data items to see which one is larger or smaller or equal.
● Control Unit : The Control unit coordinates and controls the data flow in and out
of CPU and also controls all the operations of ALU, memory registers and also
input/output units. It is also responsible for carrying out all the instructions stored
in the program. It decodes the fetched instruction, interprets it and sends control
signals to input/output devices until the required operation is done properly by
ALU and memory.
● Memory : Memory attached to the CPU is used for storage of data and
instructions and is called internal memory The internal memory is divided into
many storage locations, each of which can store data or instructions. Each
memory location is of the same size and has an address. With the help of the
address, the computer can read any memory location easily without having to
search the entire memory. when a program is executed, it’s data is copied to the
internal memory and is stored in the memory till the end of the execution. The
internal memory is also called the Primary memory or Main memory. This
memory is also called as RAM, i.e. Random Access Memory. The time of access
of data is independent of its location in memory, therefore this memory is also
called Random Access memory (RAM). Read this for different types of RAMs
● Output Unit : The output unit consists of output devices that are attached with
the computer. It converts the binary data coming from CPU to human
understandable form. The common output devices are monitor, printer, plotter
etc.
BUS Arbitration
Introduction :
In a computer system, multiple devices, such as the CPU, memory, and I/O
controllers, are connected to a common communication pathway, known as
a bus. In order to transfer data between these devices, they need to have
access to the bus. Bus arbitration is the process of resolving conflicts that
arise when multiple devices attempt to access the bus at the same time.
When multiple devices try to use the bus simultaneously, it can lead to data
corruption and system instability. To prevent this, a bus arbitration
mechanism is used to ensure that only one device has access to the bus at
any given time.
There are several types of bus arbitration methods, including centralized,
decentralized, and distributed arbitration. In centralized arbitration, a single
device, known as the bus controller, is responsible for managing access to
the bus. In decentralized arbitration, each device has its own priority level,
and the device with the highest priority is given access to the bus. In
distributed arbitration, devices compete for access to the bus by sending a
request signal and waiting for a grant signal.
Bus Arbitration refers to the process by which the current bus master
accesses and then leaves the control of the bus and passes it to another
bus requesting processor unit. The controller that has access to a bus at an
instance is known as a Bus master.
A conflict may arise if the number of DMA controllers or other controllers or
processors try to access the common bus at the same time, but access can
be given to only one of those. Only one processor or controller can be Bus
master at the same point in time. To resolve these conflicts, the Bus
Arbitration procedure is implemented to coordinate the activities of all
devices requesting memory transfers. The selection of the bus master must
take into account the needs of various devices by establishing a priority
system for gaining access to the bus. The Bus Arbiter decides who would
become the current bus master.
(i) Daisy Chaining method: It is a simple and cheaper method where all
the bus masters use the same line for making bus requests. The bus grant
signal serially propagates through each master until it encounters the first
one that is requesting access to the bus. This master blocks the
propagation of the bus grant signal, therefore any other requesting module
will not receive the grant signal and hence cannot access the bus.
During any bus cycle, the bus master may be any device – the processor or
any DMA controller unit, connected to the bus.
Advantages:
● Simplicity and Scalability.
● The user can add more devices anywhere along the chain, up to a
certain maximum value.
Disadvantages:
● The value of priority assigned to a device depends on the position of the
master bus.
● Propagation delay arises in this method.
● If one device fails then the entire system will stop working.
Advantages –
● This method does not favor any particular device and processor.
● The method is also quite simple.
● If one device fails then the entire system will not stop working.
Disadvantages –
● Adding bus masters is difficult as increases the number of address lines
of the circuit.
(iii) Fixed priority or Independent Request method –
In this, each master has a separate pair of bus request and bus grant lines
and each pair has a priority assigned to it.
The built-in priority decoder within the controller selects the highest priority
request and asserts the corresponding bus grant signal.
Advantages –
● This method generates a fast response.
Disadvantages –
● Hardware cost is high as a large no. of control lines is required.