Professional Documents
Culture Documents
Objectives
a) Understand core functions of “CPU
components”
b) Explain data transfer to and from memory
Registers
Fast stand-alone storage locations that hold
data temporarily in CPU.
Registers (contd.)
Types
– PC (Program Counter)
• Keep track of the instruction currently being
executed.
• Incremented after execution of the instruction.
– Instruction Register
• Store the instruction currently being executed
– Data Registers
• Hold data before it can be processed
Registers (contd.)
• The power and speed of a CPU determined by
– the number of registers that a CPU has and
– the size of each (number of bits)
Control Unit
• Like the part of the human brain, control unit
controls the operation of each part of the body.
• Main memory –
– a collection of storage locations,
– each with a unique identifier called the address.
• Word-
– Data are transferred to and from memory in
groups of bits called words.
– The number of bits that can be stored in one
CPU register in a computer.
1.Fetch
– IRMemory[PC]
– PC++
2.Decode
– [IR] gets decoded by control unit
3.Execute
– Control unit sends the task-orders to other
components.
IRMemory[070]
PC++
Source: Feleke Merin (Dr. –Eng.) 14
Contents of memory and registers after each cycle
R1Memory[200]
IRMemory[071]
PC++
R2Memory[201]
IRMemory[072]
PC++
R3R1+R2
IRMemory[073]
PC++
Memory[202]R3
IRMemory[074]
PC++