The Central Processing Unit (CPU)
The Central Processing Unit (CPU)
Processing Unit
(CPU)
Computer Technology
What is the CPU?
Introduction
Execute: to do or perform
Functional elements of CPU
• ALU
• Does all the mathematical computations in a computer.
• Does all the logic comparisons of values.
• Control unit
• Directs the flow of data into the CPU and storage memory.
• Controls the instructions the CPU will perform next.
• Main memory
• Holds data awaiting processing.
• Holds data that has been processed awaiting to be output.
• Holds data been processed.
Types of main memory
• Characteristics
• Can only be read but not written to.
• It is non-volatile i.e. its content is not lost
when computer is switched off.
• Stores permanent instructions from
manufacturer called firmware.
Types of ROM
a. Mask Read Only Memory (MROM) – once contents are written on it by the
manufacturer, it cannot be changed.
b. Programmable Read Only Memory (PROM) – this allows the user to alter it only
once after the content is written on it.
c. Erasable Programmable Read Only Memory (EPROM) – the contents stored in this
memory can be erased by exposing them to ultraviolet light and then
reprogrammed for another use.
d. Electrically Erasable Programmable Read Only Memory (EEPROM) – this memory
can be erased and reprogrammed using electricity.
Types of main memory
• Characteristics
• Data can be read (retrieved) and written
(stored) in it.
• It’s temporary (volatile), its contents
disappears when the computer is switched
off.
• Its contents is user defined i.e. user dictates
what is to be contained in the RAM
8
Types of RAM
10
Examples of registers
14