Beruflich Dokumente
Kultur Dokumente
PRESENTED BY :-
PRASHANT SHARMA
IO ARCHITECHTURE
A computer’s IO architecture is
its interface to the outside world .
This architecture is designed to
provide a means of controlling
interaction with outside world .
For this a pc has a set of io
modules . Each module interface
to system bus & control at least
one IO device .
PURPOSE OF IO
MODULE
It solve difference between CPU &
each peripheral .
Peripheral are electromechanical &
electromagnetical devices ; CPU is
electronic device . So a conversion of
signal value is required .
Data transfer rate of peripheral is
much slower than CPU . So a method
of synchronization is required .
PURPOSE OF IO
MODULE
Data code & format in peripheral
differs from that of CPU .
Word length of data in peripheral
is different from CPU .
Operating mode of peripheral are
different from each other & each
of them must be controlled .
FUNCTIONS OF IO
MODULES
Interface to processor & memory
via system bus .
Interface to one or more
peripheral devices by data links
IO COMMANDS
CONTROL COMMAND to activate a
peripheral & inform it what to do .
STATUS COMMAND to test
various status conditions of io
module .
INPUT COMMAND to transfer data
word from io device to CPU .
OUTPUT COMMAND to transfer
data from CPU to io device .
REQUIREMENTS FROM
IO MODULE
Control & timing
Processor communication
Device communication
Data buffering
Error detection
CONTROL & TIMING
Coordinating flow of traffic
between internal resources &
external devices
Managing allocation of time to
each peripheral attached to it .
PROCESSOR
COMMUNICATION
Command decoding
Data transfer
Status reporting
Address recognition
DATA BUFFERING
IO
PROGRAMMED I\O
if FLAG =0 go to step 1
if FLAG =1 go to step 3
Instruction to read Data
Register
Issue read command to IO module
Read condition
y
Read word from IO module
NO
Done
Next instruction
TYPES
MPU initiated unconditional IO
data transfer
MPU initiated conditional (polled )
IO data transfer
LIMITATION OF PROG
IO
The processor have to wait for
along time for io module of
concern to be ready for reception
\ transmission of data . Processor
while waiting must interrogate
the status of io module . As a
result the level of performance of
entire system is degraded .
INTERRUPT
DRIVEN IO
INTERRUPT DRIVEN IO
FOR PROCESSOR :
Processor issues a command to IO
module
& get busy with other task .
At the end of each instruction cycle , CPU
FOR IO MODULE :
IO module receive a command from
processor & then proceed to read data
from required peripheral .
Once data is in module’s DR , it
signals an interrupt to over a control
line .
Module then waits for it’s data request
from CPU . when it occurs module
place data on data bus
INTERRUPT
PROCESSING
Device controller issues an interrupt
Read condition
y
Read word from IO module
NO
Done
Next instruction
TYPE OF INTERRUPT
Vectored interrupt
Source that interrupt supply the
branch information to computer .
This
information is called interrupt
vector .
DATA REGISTER
CONTROL LOGIC
DMA CONTROLLER
It contains the usual circuitry . In addition
to this It has :
ADDRESS LINES for direct communication
with memory
DATA COUNT REGISTER storing no of
words to transfer
ADDRESS REGISTER containing an
address to specify desired location in
memory
CONTROL REGISTER specifying mode of
transfer i.e. To read or write .
DMA TRANSFER
Peripheral device sends a DMA
request
DMA activates bus request to CPU
INTERRUPT
Read status of IO module
DMA ->CPU
NEXT INSTRUCTION
MODE OF DMA
OPERATION
Cycle stealing
IO IO IO
IO BUS
DMA CONFIGRATIONS
CPU
IO IO IO
SELECTOR CHANNEL
MULTIPLEXER CHANNEL
CHANNEL COMMAND
WORDS
The instructions executed by IOP
are called channel command
word (CCW).
They are of three types :