Lecture 12 - System Buses: Interfacing Processors and Peripherals Signals Found On A Bus
Lecture 12 - System Buses: Interfacing Processors and Peripherals Signals Found On A Bus
Processor to memory: the processor writes data to memory I/O to processor: the processor reads data from I/O device Processor to I/O: the processor writes data to I/O device I/O to or from memory: I/O module allowed to exchange data directly with
memory without going through the processor - Direct Memory Access (DMA)
Interrupt REQ: indicates that an interrupt is pending Interrupt ACK: Acknowledges that pending interrupt has been recognized Reset: Initializes everything connected to the bus Clock: on a synchronous bus, everything is synchronized to this signal
pykc/gac - 4-Dec-01
Lecture 12 - 2
N N
Separate out fast local bus (PCI bus) and slower I/O expansion bus (ISA bus)
pykc/gac - 4-Dec-01 ISE1 / EE2 Computing
Lecture 12 - 4
I/O Devices
N
pykc/gac - 4-Dec-01
Lecture 12 - 5
pykc/gac - 4-Dec-01
Lecture 12 - 6
Both are methods to notify processor that I/O device needs attention Polling
simple, but slow processor check status of I/O device regularly to see if it needs attention similar to checking a telephone without bells!
Interrupt & programmed I/O requires processor to transfer data between memory and I/O module. Processor is tied up in performing the transfer by executing a number of instructions - SLOW!!! I/O module can contain autonomous hardware to perform transfer DMA DMA is stealing bus cycles from processor - a technique known as cycle stealing
Interrupt
fast, but more complicated processor is notified by I/O device (interrupted) when device needs attention similar to a telephone with bells
N N
pykc/gac - 4-Dec-01
Lecture 12 - 7
pykc/gac - 4-Dec-01
Lecture 12 - 8
DMA is initiated by a processor. The following information must be sent by the processor to the DMA module:
Tell DMA module whether a read or write is required Send to the DMA module the address of the I/O device involved in the transfer The starting location in memory to read from or write to - DMA module will store this locally in the address register The number of word to read or write - DMA module will store this in the data count register
N N
Once DMA is initiated, the processor can continue with other work. Since processor has cache memory, it can work concurrently with transfer between I/O device and memory. (But there is extra work needed to ensure cache coherency)
pykc/gac - 4-Dec-01
Lecture 12 - 9
pykc/gac - 4-Dec-01
Lecture 12 - 10
pykc/gac - 4-Dec-01
Lecture 12 - 11
pykc/gac - 4-Dec-01
Lecture 12 - 12