SlideShare a Scribd company logo
Input –Output Organzation
Shree s’ad vidyamandal institute of
technology
DEPARTMENT OF ENGINEERING
INFORMATION TECHNONLGY
• Daxesh Chauhan 130450116004
• Patanvadiya Nidhi 130450116020
• Thakor Rahual 130450116042
• Yadav Deepak 130450116045
Input Output Organization
IO Interface
Modes of transfer
Interrupt
Direct Memory Access
Introduction to IO Processor
IO Interface
• IO interface provides a method for
transferring information between internal
storage and external I/O devices.
• I/O devices can not directly communicate with
the CPU due to various differences between
them.
• The major differences are:
Input - output organzation
I/O Bus and Interface Modules
• I/O bus is attached to all peripherals.
• Interface monitors the address on address bus.
• If it find its own address, it activates path
between bus line and device.
• All the other devices are disabled by their
interfaces.
• Data to read or write is made available in the data
bus.
• IO command is made available in the control bus.
• There are four types of IO command:
– Control Command
– Status Command
– Output Data Command
– Input Data Command
IO versus Memory bus
• Like IO bus Memory bus also contain data,
address and control lines.
• There are 3 ways in which computer bus
communicates with memory and IO.
• In the first method, CPU has independent set
of buses for both memory and IO. It is done in
computers that has separate IOP and CPU.
• In second method computers use common
bus to transfer data between IO or memory
and CPU. And separate read and write lines.
• IO read/write is enabled during IO transfer
and memory read/write is enabled during
memory transfer.
• This configuration isolates all I/O interface
address with the memory address and is
referred to as Isolated IO method.
• In third method same address space is used
for both memory and IO interface. They have
only one set of read and write signals.
• Computer treats interface as being part of the
memory system.
• It assign address for each interface which
cannot be used for memory words.
• This configuration is referred to as memory-
mapped IO.
Modes of transfer
• Data transfer between computer and IO
device can be handle in the following ways:
– Programmed IO
– Interrupt-Initiated IO
– Direct Memory Access(DMA)
Programmed IO
• Each data transfer is initiated by an instruction
in the program.
• CPU stays in the program loop until IO unit
indicates it is ready for the data transfer.
• It is time consuming process since it keeps
processor busy needlessly.
Example of programmed IO
• The transfer of data requires three
instructions:
Interrupt Initiated IO
• In this type of IO, computer does not check
the flag. It continue to perform its task.
• Whenever any device wants the attention, it
sends the interrupt signal to the CPU.
• CPU then deviates from what it was doing,
store the return address from PC and branch
to the address of the subroutine.
• There are two ways of choosing the branch
address:
– Vectored Interrupt
– Non-vectored Interrupt
• In vectored interrupt the source that interrupt
the CPU provides the branch information. This
information is called interrupt vectored.
• In non-vectored interrupt, the branch address is
assigned to the fixed address in the memory.
Priority Interrupt
• There are number of IO devices attached to the
computer.
• They are all capable of generating the interrupt.
• When the interrupt is generated from more than
one device, priority interrupt system is used to
determine which device is to be serviced first.
• Devices with high speed transfer are given higher
priority and slow devices are given lower priority.
• Establishing the priority can be done in two
ways:
– Using Software
– Using Hardware
• A pooling procedure is used to identify highest
priority in software means.
Polling Procedure
• There is one common branch address for all
interrupts.
• Branch address contain the code that polls the
interrupt sources in sequence. The highest
priority is tested first.
• The particular service routine of the highest
priority device is served.
• The disadvantage is that time required to poll
them can exceed the time to serve them in large
number of IO devices.
Using Hardware
• Hardware priority system function as an overall
manager.
• It accepts interrupt request and determine the
priorities.
• To speed up the operation each interrupting
devices has its own interrupt vector.
• No polling is required, all decision are established
by hardware priority interrupt unit.
• It can be established by serial or parallel
connection of interrupt lines.
Serial or Daisy Chaining Priority.
• Device with highest priority is placed first.
• Device that wants the attention send the
interrupt request to the CPU.
• CPU then sends the INTACK signal which is
applied to PI(priority in) of the first device.
• If it had requested the attention, it place its
VAD(vector address) on the bus. And it block
the signal by placing 0 in PO(priority out)
• If not it pass the signal to next device through
PO(priority out) by placing 1.
• This process is continued until appropriate
device is found.
• The device whose PI is 1 and PO is 0 is the
device that send the interrupt request.
Input - output organzation
Parallel Priority Interrupt
• It consist of interrupt register whose bits are
set separately by the interrupting devices.
• Priority is established according to the
position of the bits in the register.
• Mask register is used to provide facility for the
higher priority devices to interrupt when
lower priority device is being serviced or
disable all lower priority devices when higher
is being serviced.
• Corresponding interrupt bit and mask bit are
ANDed and applied to priority encoder.
• Priority encoder generates two bits of vector
address.
• Another output from it sets IST(interrupt
status flip flop).
Input - output organzation
Input - output organzation
Direct Memory Access(DMA)
• In DMA there is direct communication
between memory and the peripheral devices.
• CPU is idle and has no control over the
memory buses.
• DMA controller uses buses and transfer the
data directly between I/O devices and
memory.
Input - output organzation
• BR(Bus Request) signal is used by DMA
controller to request CPU for the buses.
• CPU then places the bus on the high
impedance state which behave like open
circuit.
• CPU then activates BG(Bus Grant) signal to
acknowledge BR signal.
• DMA now has full control over the buses and
perform the transfer.
• Transfer can be perform in two ways:
– Burst Transfer
– Cycle Stealing
• In burst transfer, a number of memory word is
transfer in a continuous burst. It is done while
communicating with fast devices and can’t be
stopped or slow down.
• In cycle stealing, one data word is transfer at a
time.
• CPU delays it operation for one cycle during
which DMA transfer takes place.
DMA Controller
DMA Controller
• It communicates with CPU through data bus and
control lines.
• Registers in DMA are selected by CPU by enabling
DS and RS.
• RD and WR signals are for read and write
operation.
• When BG=0 CPU can communicate with DMA
register for read or write operation.
• When BG=1 DMA communicate directly with the
memory.
DMA Controller
• It has three register: address, word count and
control register.
• Address register contain address which specify
the location of memory to read or write.
• It is incremented after each word is transferred
into memory.
• Word count register holds the number of words
to be transferred.
• It is decremented by one after each word is
transferred into memory and regularly check for
zero.
• Control Register specify the mode of transfer.
• DMA is first initialized by CPU. After that DMA
continue to transfer data.
• CPU initialize the DMA by sending the following
information through the data bus:
– Starting address of memory block for read or write.
– The word count or number of words to read or write.
– Control to specify mode such as read or write.
– Control to start DMA
• Once DMA is initialized, CPU stop
communicating with DMA unless it receive
interrupt signal or if it wants to check how
many words has been transferred.
Input-Output Processor(IOP)
• It is a processor with direct memory access
capability that communicates with IO devices.
• IOP is similar to CPU except that it is designed
to handle the details of IO operation.
• Unlike DMA which is initialized by CPU, IOP
can fetch and execute its own instructions.
• IOP instruction are specially designed to
handle IO operation.
IOP
IOP
• Memory occupies the central position and can
communicate with each processor by DMA.
• CPU is responsible for processing data.
• IOP provides the path for transfer of data
between various peripheral devices and memory.
• Data formats of peripherals differ from CPU and
memory. IOP maintain such problems.
• Data are transfer from IOP to memory by stealing
one memory cycle.
IOP
• Instructions that are read from memory by
IOP are called commands to distinguish them
from instructions that are read by the CPU.
Input - output organzation

More Related Content

What's hot (20)

PPT
Unit – 2
techbed
 
PPT
Unit 4-l ecture3-io interface
vishal choudhary
 
PPT
Unit 4-lecte3-io interface
vishal choudhary
 
PPTX
Modes of data transfer
Shah Ishtiyaq Mehfooze
 
PPTX
Input output in computer Orgranization and architecture
vikram patel
 
PPT
Unit2 p1 io organization-97-2003
Swathi Veeradhi
 
PPT
Interface
Siddique Ibrahim
 
PPT
Unit 4 ca-input-output
BBDITM LUCKNOW
 
PPTX
Input Output - Computer Architecture
Maruf Abdullah (Rion)
 
PPTX
Io techniques & its types
Nehal Naik
 
PPT
input output Organization
Acad
 
PPTX
I/O Organization
Dhaval Bagal
 
PPT
Unit 5 I/O organization
chidabdu
 
PPTX
i/o interface
Kainat Ilyas
 
PDF
COMPUTER ORGANIZATION NOTES Unit 3 4
Dr.MAYA NAYAK
 
PPT
Input output organization
abdulugc
 
PPTX
Unit 5 lect-3-multiprocessor
vishal choudhary
 
PDF
Unit 4-input-output organization
vishal choudhary
 
PDF
COMPUTER ORGANIZATION NOTES Unit 5
Dr.MAYA NAYAK
 
PPT
Modes Of Transfer in Input/Output Organization
MOHIT AGARWAL
 
Unit – 2
techbed
 
Unit 4-l ecture3-io interface
vishal choudhary
 
Unit 4-lecte3-io interface
vishal choudhary
 
Modes of data transfer
Shah Ishtiyaq Mehfooze
 
Input output in computer Orgranization and architecture
vikram patel
 
Unit2 p1 io organization-97-2003
Swathi Veeradhi
 
Interface
Siddique Ibrahim
 
Unit 4 ca-input-output
BBDITM LUCKNOW
 
Input Output - Computer Architecture
Maruf Abdullah (Rion)
 
Io techniques & its types
Nehal Naik
 
input output Organization
Acad
 
I/O Organization
Dhaval Bagal
 
Unit 5 I/O organization
chidabdu
 
i/o interface
Kainat Ilyas
 
COMPUTER ORGANIZATION NOTES Unit 3 4
Dr.MAYA NAYAK
 
Input output organization
abdulugc
 
Unit 5 lect-3-multiprocessor
vishal choudhary
 
Unit 4-input-output organization
vishal choudhary
 
COMPUTER ORGANIZATION NOTES Unit 5
Dr.MAYA NAYAK
 
Modes Of Transfer in Input/Output Organization
MOHIT AGARWAL
 

Viewers also liked (16)

PPTX
Intro Pres
Maheshwari Goudar Patil
 
PPTX
Data loggers scanners
Sanyo Technology
 
PPT
Input output
Er Girdhari Lal Kumawat
 
PPSX
P.jeet ppt
Prasunjeet Soni
 
PDF
Strategy & Structure for U-M Commmunicators' Forum
Dan Klyn
 
PPT
ashraf final year ppt on wcr drm kota
ashrafdgrt
 
PDF
Strategy & Structure: ConveyUX 2015
Dan Klyn
 
PPTX
RDSO Training ppt
Pooja A
 
PPT
Input And Output Devices
mrbennett2009
 
PPTX
Input output interface
Christ University
 
PPTX
Input output ports and connectors
bhardwaj1992
 
PPT
Data Acquisition System and Data loggers
Swara Dave
 
PPTX
Organization development
Krishna Kanth
 
PPTX
Powerpoint presentation for data logging
Sufinah Ensian
 
PPT
Organization Development
Aman Arora
 
PDF
12 Days of Productivity
Redbooth
 
Data loggers scanners
Sanyo Technology
 
P.jeet ppt
Prasunjeet Soni
 
Strategy & Structure for U-M Commmunicators' Forum
Dan Klyn
 
ashraf final year ppt on wcr drm kota
ashrafdgrt
 
Strategy & Structure: ConveyUX 2015
Dan Klyn
 
RDSO Training ppt
Pooja A
 
Input And Output Devices
mrbennett2009
 
Input output interface
Christ University
 
Input output ports and connectors
bhardwaj1992
 
Data Acquisition System and Data loggers
Swara Dave
 
Organization development
Krishna Kanth
 
Powerpoint presentation for data logging
Sufinah Ensian
 
Organization Development
Aman Arora
 
12 Days of Productivity
Redbooth
 
Ad

Similar to Input - output organzation (20)

PPTX
inputoutputorganization-140722085906-phpapp01.pptx
AshokRachapalli1
 
PDF
A transfer from I/O device to memory requires the execution of several instru...
rsaravanakumar13
 
PDF
Computer organization part 2
Hhhh85105
 
PDF
Unit 4-input-output organization
vishal choudhary
 
PPTX
Computer architecture presentation
Muhammad Hamza
 
PPTX
This pot is about computer architecture.
SurendranathReddyNar
 
PDF
IO_ORGANIZATION.pdf
GaganaPurshothama
 
PPTX
input -output organization From Computer Organization and Architecture.pptx
sailaja870761
 
PPT
Computer Organisation and Architecture
Subhasis Dash
 
PPTX
Module 6.pptx for computer architecture and organisation
gagansocial1
 
PPT
Input / Output organization of computer architecture
MangeshBhandare7
 
PPTX
Lecture 9.pptx
JavedIqbal549896
 
PPTX
Chapter 5 IO Unit.pptx we are electrical
bayisabayecha51
 
PDF
Synchronous IO CPU waits till the IO proceeds.Asynchronous IO.pdf
rdtraders2007
 
PPTX
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
EliasPetros
 
PPTX
ch -6 IO.pptx
GadisaKanchora1
 
PPTX
Computer organization I/O organization details
423ec0007
 
PDF
Unit 6
pm_ghate
 
PPTX
Computer organization
vishnu973656
 
PPTX
Computer organization
Rvishnupriya2
 
inputoutputorganization-140722085906-phpapp01.pptx
AshokRachapalli1
 
A transfer from I/O device to memory requires the execution of several instru...
rsaravanakumar13
 
Computer organization part 2
Hhhh85105
 
Unit 4-input-output organization
vishal choudhary
 
Computer architecture presentation
Muhammad Hamza
 
This pot is about computer architecture.
SurendranathReddyNar
 
IO_ORGANIZATION.pdf
GaganaPurshothama
 
input -output organization From Computer Organization and Architecture.pptx
sailaja870761
 
Computer Organisation and Architecture
Subhasis Dash
 
Module 6.pptx for computer architecture and organisation
gagansocial1
 
Input / Output organization of computer architecture
MangeshBhandare7
 
Lecture 9.pptx
JavedIqbal549896
 
Chapter 5 IO Unit.pptx we are electrical
bayisabayecha51
 
Synchronous IO CPU waits till the IO proceeds.Asynchronous IO.pdf
rdtraders2007
 
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
EliasPetros
 
ch -6 IO.pptx
GadisaKanchora1
 
Computer organization I/O organization details
423ec0007
 
Unit 6
pm_ghate
 
Computer organization
vishnu973656
 
Computer organization
Rvishnupriya2
 
Ad

More from daxesh chauhan (7)

PPT
Rsa and diffie hellman algorithms
daxesh chauhan
 
PPTX
Elastic beam (bending of beam model)
daxesh chauhan
 
PPTX
Functional dependencies and normalization
daxesh chauhan
 
PPTX
Insertionsort shellsort heapsort
daxesh chauhan
 
PPTX
COMBINATIONAL PLD-BASED STATE MACHINES
daxesh chauhan
 
PPTX
Principles and advantages of oop ppt
daxesh chauhan
 
PPTX
Cn ppt
daxesh chauhan
 
Rsa and diffie hellman algorithms
daxesh chauhan
 
Elastic beam (bending of beam model)
daxesh chauhan
 
Functional dependencies and normalization
daxesh chauhan
 
Insertionsort shellsort heapsort
daxesh chauhan
 
COMBINATIONAL PLD-BASED STATE MACHINES
daxesh chauhan
 
Principles and advantages of oop ppt
daxesh chauhan
 

Recently uploaded (20)

PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pptx
jenilsatikuvar1
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PPTX
Element 7. CHEMICAL AND BIOLOGICAL AGENT.pptx
merrandomohandas
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pptx
jenilsatikuvar1
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Element 7. CHEMICAL AND BIOLOGICAL AGENT.pptx
merrandomohandas
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Design Thinking basics for Engineers.pdf
CMR University
 
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Thermal runway and thermal stability.pptx
godow93766
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Day2 B2 Best.pptx
helenjenefa1
 

Input - output organzation

  • 2. Shree s’ad vidyamandal institute of technology DEPARTMENT OF ENGINEERING INFORMATION TECHNONLGY
  • 3. • Daxesh Chauhan 130450116004 • Patanvadiya Nidhi 130450116020 • Thakor Rahual 130450116042 • Yadav Deepak 130450116045
  • 4. Input Output Organization IO Interface Modes of transfer Interrupt Direct Memory Access Introduction to IO Processor
  • 5. IO Interface • IO interface provides a method for transferring information between internal storage and external I/O devices. • I/O devices can not directly communicate with the CPU due to various differences between them. • The major differences are:
  • 7. I/O Bus and Interface Modules
  • 8. • I/O bus is attached to all peripherals. • Interface monitors the address on address bus. • If it find its own address, it activates path between bus line and device. • All the other devices are disabled by their interfaces. • Data to read or write is made available in the data bus. • IO command is made available in the control bus.
  • 9. • There are four types of IO command: – Control Command – Status Command – Output Data Command – Input Data Command
  • 10. IO versus Memory bus • Like IO bus Memory bus also contain data, address and control lines. • There are 3 ways in which computer bus communicates with memory and IO.
  • 11. • In the first method, CPU has independent set of buses for both memory and IO. It is done in computers that has separate IOP and CPU. • In second method computers use common bus to transfer data between IO or memory and CPU. And separate read and write lines. • IO read/write is enabled during IO transfer and memory read/write is enabled during memory transfer.
  • 12. • This configuration isolates all I/O interface address with the memory address and is referred to as Isolated IO method. • In third method same address space is used for both memory and IO interface. They have only one set of read and write signals. • Computer treats interface as being part of the memory system.
  • 13. • It assign address for each interface which cannot be used for memory words. • This configuration is referred to as memory- mapped IO.
  • 14. Modes of transfer • Data transfer between computer and IO device can be handle in the following ways: – Programmed IO – Interrupt-Initiated IO – Direct Memory Access(DMA)
  • 15. Programmed IO • Each data transfer is initiated by an instruction in the program. • CPU stays in the program loop until IO unit indicates it is ready for the data transfer. • It is time consuming process since it keeps processor busy needlessly.
  • 17. • The transfer of data requires three instructions:
  • 18. Interrupt Initiated IO • In this type of IO, computer does not check the flag. It continue to perform its task. • Whenever any device wants the attention, it sends the interrupt signal to the CPU. • CPU then deviates from what it was doing, store the return address from PC and branch to the address of the subroutine.
  • 19. • There are two ways of choosing the branch address: – Vectored Interrupt – Non-vectored Interrupt • In vectored interrupt the source that interrupt the CPU provides the branch information. This information is called interrupt vectored. • In non-vectored interrupt, the branch address is assigned to the fixed address in the memory.
  • 20. Priority Interrupt • There are number of IO devices attached to the computer. • They are all capable of generating the interrupt. • When the interrupt is generated from more than one device, priority interrupt system is used to determine which device is to be serviced first. • Devices with high speed transfer are given higher priority and slow devices are given lower priority.
  • 21. • Establishing the priority can be done in two ways: – Using Software – Using Hardware • A pooling procedure is used to identify highest priority in software means.
  • 22. Polling Procedure • There is one common branch address for all interrupts. • Branch address contain the code that polls the interrupt sources in sequence. The highest priority is tested first. • The particular service routine of the highest priority device is served. • The disadvantage is that time required to poll them can exceed the time to serve them in large number of IO devices.
  • 23. Using Hardware • Hardware priority system function as an overall manager. • It accepts interrupt request and determine the priorities. • To speed up the operation each interrupting devices has its own interrupt vector. • No polling is required, all decision are established by hardware priority interrupt unit. • It can be established by serial or parallel connection of interrupt lines.
  • 24. Serial or Daisy Chaining Priority. • Device with highest priority is placed first. • Device that wants the attention send the interrupt request to the CPU. • CPU then sends the INTACK signal which is applied to PI(priority in) of the first device. • If it had requested the attention, it place its VAD(vector address) on the bus. And it block the signal by placing 0 in PO(priority out)
  • 25. • If not it pass the signal to next device through PO(priority out) by placing 1. • This process is continued until appropriate device is found. • The device whose PI is 1 and PO is 0 is the device that send the interrupt request.
  • 27. Parallel Priority Interrupt • It consist of interrupt register whose bits are set separately by the interrupting devices. • Priority is established according to the position of the bits in the register. • Mask register is used to provide facility for the higher priority devices to interrupt when lower priority device is being serviced or disable all lower priority devices when higher is being serviced.
  • 28. • Corresponding interrupt bit and mask bit are ANDed and applied to priority encoder. • Priority encoder generates two bits of vector address. • Another output from it sets IST(interrupt status flip flop).
  • 31. Direct Memory Access(DMA) • In DMA there is direct communication between memory and the peripheral devices. • CPU is idle and has no control over the memory buses. • DMA controller uses buses and transfer the data directly between I/O devices and memory.
  • 33. • BR(Bus Request) signal is used by DMA controller to request CPU for the buses. • CPU then places the bus on the high impedance state which behave like open circuit. • CPU then activates BG(Bus Grant) signal to acknowledge BR signal. • DMA now has full control over the buses and perform the transfer.
  • 34. • Transfer can be perform in two ways: – Burst Transfer – Cycle Stealing • In burst transfer, a number of memory word is transfer in a continuous burst. It is done while communicating with fast devices and can’t be stopped or slow down. • In cycle stealing, one data word is transfer at a time. • CPU delays it operation for one cycle during which DMA transfer takes place.
  • 36. DMA Controller • It communicates with CPU through data bus and control lines. • Registers in DMA are selected by CPU by enabling DS and RS. • RD and WR signals are for read and write operation. • When BG=0 CPU can communicate with DMA register for read or write operation. • When BG=1 DMA communicate directly with the memory.
  • 37. DMA Controller • It has three register: address, word count and control register. • Address register contain address which specify the location of memory to read or write. • It is incremented after each word is transferred into memory. • Word count register holds the number of words to be transferred. • It is decremented by one after each word is transferred into memory and regularly check for zero.
  • 38. • Control Register specify the mode of transfer. • DMA is first initialized by CPU. After that DMA continue to transfer data. • CPU initialize the DMA by sending the following information through the data bus: – Starting address of memory block for read or write. – The word count or number of words to read or write. – Control to specify mode such as read or write. – Control to start DMA
  • 39. • Once DMA is initialized, CPU stop communicating with DMA unless it receive interrupt signal or if it wants to check how many words has been transferred.
  • 40. Input-Output Processor(IOP) • It is a processor with direct memory access capability that communicates with IO devices. • IOP is similar to CPU except that it is designed to handle the details of IO operation. • Unlike DMA which is initialized by CPU, IOP can fetch and execute its own instructions. • IOP instruction are specially designed to handle IO operation.
  • 41. IOP
  • 42. IOP • Memory occupies the central position and can communicate with each processor by DMA. • CPU is responsible for processing data. • IOP provides the path for transfer of data between various peripheral devices and memory. • Data formats of peripherals differ from CPU and memory. IOP maintain such problems. • Data are transfer from IOP to memory by stealing one memory cycle.
  • 43. IOP • Instructions that are read from memory by IOP are called commands to distinguish them from instructions that are read by the CPU.