Module 2 part 1
Module 2 part 1
Interconnection
Program Concept
• A sequence of steps
• For each step, an arithmetic or logical operation is done
• For each operation, a different set of control signals is needed
Function of Control Unit
• We have a computer!
Components
• The Control Unit and the Arithmetic and Logic Unit constitute the
Central Processing Unit
• Data and instructions need to get into the system and results out
• Input/output
• Temporary storage of code and results is needed
• Main memory
Computer Components:
Top Level View
Instruction Cycle
• Two steps:
• Fetch
• Execute
Fetch Cycle
Processor-memory
data transfer between CPU and main memory
Processor I/O
Data transfer between CPU and I/O module
Data processing
Some arithmetic or logical operation on data
Control
Alteration of sequence of operations
e.g. jump
Combination of above
Example of Program Execution
Instruction Cycle State Diagram
Interrupts
Disable interrupts
Processor will ignore further interrupts whilst processing one interrupt
Interrupts remain pending and are checked after first interrupt has been
processed
Interrupts handled in sequence as they occur
Define priorities
Low priority interrupts can be interrupted by higher priority interrupts
When higher priority interrupt has been processed, processor returns to
previous interrupt
Multiple Interrupts - Sequential
Multiple Interrupts – Nested
Time Sequence of Multiple
Interrupts
Connecting
• Carries data
• Remember that there is no difference between “data” and “instruction” at
this level
• Width is a key determinant of performance
• 8, 16, 32, 64 bit
Address bus