Unit 3.components of A Computer System
Unit 3.components of A Computer System
3
Central Processing Unit (CPU)
CPU stands for Central Processing Unit; it is also known as "the brain of the
computer". A CPU is a primary component of a computer that performs
most of the processing and controls the operation of all components
running inside a computer.
4
The operation or task that the CPU must perform
Registers
Cache
8
Control Unit (CU)
9
Functions of Control Unit
The Arithmetic Logic Unit (ALU) is a component that has been extensively
optimised and engineered to do multiple tasks concurrently.
It is commonly built to execute operations speedily.
11
Functions of an ALU
12
Registers
These are small, fast storage locations within the CPU that
temporarily hold data and instructions that the CPU is currently
processing.
These registers store data in the form of memory address and
after the processing of the instruction present at that memory
address is completed, it stores the memory address of the next
instruction
13
Cache
14
CPU connection
15
The system bus components:
▪ Data Bus: Data bus is used to transfer the data between main
memory and CPU.
▪ Address Bus: Address bus is used to access a particular
memory location by putting the address of the memory location.
▪ Control Bus: This bus carries control signals that manage and
coordinate the activities of the computer. It ensures that data is
transferred correctly and prevents data
16
Memory
17
Primary Memory
18
Secondary storage (Hard Drives, SSDs, Flash Drives,
etc)
Secondary Storage devices are used to store the data permanently, even
when the computer is powered off.
They are non-volatile (the data remains intact even when the power is
turned off or the system restarts)
The most popular and commonly used storage devices are Hard disks
(HDs), Solid-State Drives (SSDs), USB flash drives, and optical disks (e.g.,
DVDs), pen drives.
19
Input devices
20
Out put devices
21
Instruction Pipeline
▪ An instruction pipeline reads consecutive instructions from memory while in the other
segments, the previous instructions are being implemented. Most of the digital computers
with complex instructions require instruction pipeline to carry out operations like fetch,
decode and execute instructions.
In general, the computer needs to process each instruction with the following sequence
of steps
22
6. Store the result in the proper place.
Cont.…..
Each step is executed in a particular segment, and there are times when
different segments may take different times to operate on the incoming
information. Moreover, there are times when two or more segments may
require memory access at the same time, causing one segment to wait until
another is finished with the memory.
The organization of an instruction pipeline will be more efficient if the
instruction cycle is divided into segments of equal duration. One of the most
common examples of this type of organization is a Four-segment
instruction pipeline.
A four-segment instruction pipeline combines two or more different
segments and makes it as a single one. For instance, the decoding of the
instruction can be combined with the calculation of the effective address
23 into one segment.
Block diagram showing a typical example of a four-
segment instruction pipeline
24
Explanation of the above block diagram
Segment 1
The instruction fetch segment can be executed using a first-in, first-out
(FIFO) buffer.
Segment 2
The instruction fetched from memory is decoded in the second segment.
The effective address is computed in an independent arithmetic circuit.
Segment 3
An operand from memory is fetched in the third segment.
Segment 4
The instructions are finally implemented in the final segment of the pipeline
organization.
25
General functions of the CPU
It directs Input and output units that how to respond to the instructions that
have been communicated to the processor.
A CPU contains registers which are considered small storage locations
within the CPU to hold data temporarily during execution of a program.
A CPU executes instructions by fetching them from memory, decodes them,
and then executes them.
26
Reading assignment
27
Thank you
Thoughts? Suggestions?
28
Template by the eLearning Unit @Kab