Functional Components of A Computer
Functional Components of A Computer
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 Registers: A register is a temporary unit of memory in the CPU. These are used to
store the data which is directly used by the processor. Registers can be of different sizes (16
bit, 32 bit, 64 bit and so on) and each register inside the CPU has a specific function like
storing data, storing an instruction, storing address of a location in memory etc. The user
registers can be used by an assembly language programmer for storing operands, intermediate
results etc. Accumulator (ACC) is the main register in the ALU and contains one of the
operands of an operation to be performed in the ALU.
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).
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.
It works as a communication pathway through which information flows from one hardware
component to the other hardware component.
A bus that connects major components (CPU, memory and I/O devices) of a
computer system is called as a System Bus.
Why Do We Need Bus?
A computer system is made of different components such as memory, ALU, registers etc.
Each component should be able to communicate with other for proper execution of
instructions and information flow.
If we try to implement a mesh topology among different components, it would be really
expensive.
So, we use a common component to connect each necessary component i.e. BUS.
Ques 1 Draw a block diagram of the computer's CPU showing all the basic building blocks
such as program counter, accumulator, address and data registers, instruction register,
control unit etc.; and describe how such an arrangement can work as a computer, if
connected properly to memory, input/output etc.
Ques 2 Explain the functional units of digital systems and their interconnections. AKTU
PYQ
Answer: Functional units are a part of a CPU that performs the operations and calculations called
for by the computer program. A computer consists of five main components namely,
1. Input unit: Input units are used by the computer to read the data.
2. Central Processing Unit: Electronic circuitry within a computer that carries out the
instructions given by a computer program by performing the basic arithmetic, logical, control and
input/output (I/O) operations specified by the instructions.
3. Memory unit/Storage Unit: The Memory unit can be referred to as the storage area in which
programs are kept which are running, and that contains data needed by the running programs
4. Arithmetic & logical unit: It performs arithmetic operations like addition, subtraction,
multiplication, division and also the logical operations like AND, OR, NOT operations.
5. Control unit (Nerve Center of a computer system): It tells the computer's memory,
arithmetic/logic unit and input and output devices how to respond to a program's instructions.
6. Output unit: As the name suggests, it displays information in a way that the user can
understand.
Ques 7 What is a memory transfer? What are different registers associated for memory
transfer? Discuss.
Memory Transfer:
The transfer of information from a memory word to the outside environment is called a read
operation. The transfer of new information to be stored into the memory is called a write
operation.
Different Registers Associated for Memory Transfer:
The address register (AR) is used to select a memory address, and the data register (DR) is used to
send and receive data. Both these registers are connected to the internal bus.
DR← M[AR]:This is the read operation.
M[AR]<--R1:This is the write operation.
Ques 8 Explain the operation of three state bus buffers and show its use in design of common
bus.
Ques 9 Explain why the single shared bus is so widely used as an interconnection medium in
both sequential and parallel computers. What are its main disadvantages?
Single Shared Bus:
Single Bus Structure: All units are connected to a single bus system.
Sequential Computers: Machine instructions are processed in a sequential manner and computers
adopting this model are popularly called sequential computers
Parallel Computers: Parallel Computer Architecture is the method of organizing all the resources
to maximize the performance and the programmability within the limits given by technology and
the cost at any instance of time.
Disadvantages:
It has limited speed because only two units can participate in a data transfer at any given interval
of time.
Ques 10 What is the benefit of using multiple bus architecture compared to a single bus
architecture?
Benefits of using multiple Bus Architecture are:
1. Reduces propagation delay, because each bus can be shorter.
2. Multiple buses permit several devices to work simultaneously, reducing waiting time spent
and improving the computer's speed.
3. Performance improvements are the main reason for having multiple buses in a computer
design.