CAAL Chapter 3 Lecture 2
CAAL Chapter 3 Lecture 2
Part-2
I/O
from I/O controller
Hardware failure
e.g. memory parity error
Program Flow Control
Interrupt Cycle
Save context
Process interrupt
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
(Interrupt
service
routine)
Connecting
Input/Output
CPU
PCI Express bus card slots (from top to bottom: x4, x16, x1 and x16), compared
to a traditional 32-bit PCI bus card slot (bottom). (PCI = Peripheral Component
Interconnect)
Computer Modules
Memory Connection
Write
Timing
Computer Modules
Input/Output Connection(1)
Input
Receive data from peripheral
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
2 16 = 2 10 X 2 6
= 2 6 X 2 10
= 64 k
Control Bus
Interrupt request
Clock signals
Bus Interconnection Scheme
Big and Yellow?
Ribbon cables
Dedicated
Separate data & address lines
Multiplexed
Shared lines
Disadvantages
More complex control
Ultimate performance
Reading Assignment
Bus Arbitration
Quiz