SlideShare a Scribd company logo
1 of 44
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:
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.
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).
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.
• 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

Unit – 2
Unit – 2Unit – 2
Unit – 2techbed
 
Unit 4-l ecture3-io interface
Unit 4-l ecture3-io interfaceUnit 4-l ecture3-io interface
Unit 4-l ecture3-io interfacevishal choudhary
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interfacevishal choudhary
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecturevikram patel
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Swathi Veeradhi
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-outputBBDITM LUCKNOW
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer ArchitectureMaruf Abdullah (Rion)
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 
input output Organization
input output Organizationinput output Organization
input output OrganizationAcad
 
I/O Organization
I/O OrganizationI/O Organization
I/O OrganizationDhaval Bagal
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organizationchidabdu
 
i/o interface
i/o interfacei/o interface
i/o interfaceKainat Ilyas
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4Dr.MAYA NAYAK
 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
 
Unit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorUnit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorvishal choudhary
 
Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organizationvishal choudhary
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5Dr.MAYA NAYAK
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationMOHIT AGARWAL
 

What's hot (20)

Unit – 2
Unit – 2Unit – 2
Unit – 2
 
Unit 4-l ecture3-io interface
Unit 4-l ecture3-io interfaceUnit 4-l ecture3-io interface
Unit 4-l ecture3-io interface
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interface
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecture
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
 
Interface
InterfaceInterface
Interface
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-output
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 
input output Organization
input output Organizationinput output Organization
input output Organization
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
i/o interface
i/o interfacei/o interface
i/o interface
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Unit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorUnit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessor
 
Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organization
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output Organization
 

Viewers also liked

Data loggers scanners
Data loggers scannersData loggers scanners
Data loggers scannersSanyo Technology
 
Strategy & Structure for U-M Commmunicators' Forum
Strategy & Structure for U-M Commmunicators' ForumStrategy & Structure for U-M Commmunicators' Forum
Strategy & Structure for U-M Commmunicators' ForumDan Klyn
 
ashraf final year ppt on wcr drm kota
ashraf final year ppt on wcr drm kotaashraf final year ppt on wcr drm kota
ashraf final year ppt on wcr drm kotaashrafdgrt
 
Strategy & Structure: ConveyUX 2015
Strategy & Structure: ConveyUX 2015Strategy & Structure: ConveyUX 2015
Strategy & Structure: ConveyUX 2015Dan Klyn
 
RDSO Training ppt
RDSO Training pptRDSO Training ppt
RDSO Training pptPooja A
 
Input And Output Devices
Input And Output DevicesInput And Output Devices
Input And Output Devicesmrbennett2009
 
Input output interface
Input output interfaceInput output interface
Input output interfaceChrist University
 
Input output ports and connectors
Input output ports and connectorsInput output ports and connectors
Input output ports and connectorsbhardwaj1992
 
Data Acquisition System and Data loggers
Data Acquisition System and Data loggersData Acquisition System and Data loggers
Data Acquisition System and Data loggersSwara Dave
 
Organization development
Organization developmentOrganization development
Organization developmentKrishna Kanth
 
Powerpoint presentation for data logging
Powerpoint presentation for data loggingPowerpoint presentation for data logging
Powerpoint presentation for data loggingSufinah Ensian
 
Organization Development
Organization DevelopmentOrganization Development
Organization DevelopmentAman Arora
 
12 Days of Productivity
12 Days of Productivity12 Days of Productivity
12 Days of ProductivityRedbooth
 

Viewers also liked (16)

Intro Pres
Intro PresIntro Pres
Intro Pres
 
Data loggers scanners
Data loggers scannersData loggers scanners
Data loggers scanners
 
Input output
Input outputInput output
Input output
 
P.jeet ppt
P.jeet pptP.jeet ppt
P.jeet ppt
 
Strategy & Structure for U-M Commmunicators' Forum
Strategy & Structure for U-M Commmunicators' ForumStrategy & Structure for U-M Commmunicators' Forum
Strategy & Structure for U-M Commmunicators' Forum
 
ashraf final year ppt on wcr drm kota
ashraf final year ppt on wcr drm kotaashraf final year ppt on wcr drm kota
ashraf final year ppt on wcr drm kota
 
Strategy & Structure: ConveyUX 2015
Strategy & Structure: ConveyUX 2015Strategy & Structure: ConveyUX 2015
Strategy & Structure: ConveyUX 2015
 
RDSO Training ppt
RDSO Training pptRDSO Training ppt
RDSO Training ppt
 
Input And Output Devices
Input And Output DevicesInput And Output Devices
Input And Output Devices
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Input output ports and connectors
Input output ports and connectorsInput output ports and connectors
Input output ports and connectors
 
Data Acquisition System and Data loggers
Data Acquisition System and Data loggersData Acquisition System and Data loggers
Data Acquisition System and Data loggers
 
Organization development
Organization developmentOrganization development
Organization development
 
Powerpoint presentation for data logging
Powerpoint presentation for data loggingPowerpoint presentation for data logging
Powerpoint presentation for data logging
 
Organization Development
Organization DevelopmentOrganization Development
Organization Development
 
12 Days of Productivity
12 Days of Productivity12 Days of Productivity
12 Days of Productivity
 

Similar to Input - output organzation

Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operationskdisthere
 
A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...rsaravanakumar13
 
computer system structure
computer system structurecomputer system structure
computer system structureHAMZA AHMED
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxAshokRachapalli1
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptxSherinRappai
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentationMuhammad Hamza
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxMedicaps University
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.pptChABiDRazZaQ
 
DMA Controller Presentation
DMA Controller PresentationDMA Controller Presentation
DMA Controller PresentationWaddaMalik
 
Input output organization (1).pptx
Input output organization (1).pptxInput output organization (1).pptx
Input output organization (1).pptxRamanRay105
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxwebip34973
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS ssuser45ae56
 
Direct memory access
Direct memory accessDirect memory access
Direct memory accessWBUTTUTORIALS
 
Report in SAD
Report in SADReport in SAD
Report in SADjesseledm
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.encAnwal Mirza
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnectionSher Shah Merkhel
 

Similar to Input - output organzation (20)

Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operations
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 
A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptx
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptx
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentation
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptx
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
 
DMA Controller Presentation
DMA Controller PresentationDMA Controller Presentation
DMA Controller Presentation
 
Input output organization (1).pptx
Input output organization (1).pptxInput output organization (1).pptx
Input output organization (1).pptx
 
07 input output
07 input output07 input output
07 input output
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnection
 

More from daxesh chauhan

Rsa and diffie hellman algorithms
Rsa and diffie hellman algorithmsRsa and diffie hellman algorithms
Rsa and diffie hellman algorithmsdaxesh chauhan
 
Elastic beam (bending of beam model)
Elastic beam (bending of beam model)Elastic beam (bending of beam model)
Elastic beam (bending of beam model)daxesh chauhan
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalizationdaxesh chauhan
 
Insertionsort shellsort heapsort
Insertionsort shellsort heapsortInsertionsort shellsort heapsort
Insertionsort shellsort heapsortdaxesh chauhan
 
COMBINATIONAL PLD-BASED STATE MACHINES
COMBINATIONAL PLD-BASED STATE MACHINESCOMBINATIONAL PLD-BASED STATE MACHINES
COMBINATIONAL PLD-BASED STATE MACHINESdaxesh chauhan
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop pptdaxesh chauhan
 

More from daxesh chauhan (7)

Rsa and diffie hellman algorithms
Rsa and diffie hellman algorithmsRsa and diffie hellman algorithms
Rsa and diffie hellman algorithms
 
Elastic beam (bending of beam model)
Elastic beam (bending of beam model)Elastic beam (bending of beam model)
Elastic beam (bending of beam model)
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Insertionsort shellsort heapsort
Insertionsort shellsort heapsortInsertionsort shellsort heapsort
Insertionsort shellsort heapsort
 
COMBINATIONAL PLD-BASED STATE MACHINES
COMBINATIONAL PLD-BASED STATE MACHINESCOMBINATIONAL PLD-BASED STATE MACHINES
COMBINATIONAL PLD-BASED STATE MACHINES
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
Cn ppt
Cn  pptCn  ppt
Cn ppt
 

Recently uploaded

Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 

Recently uploaded (20)

Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 

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:
  • 6.
  • 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.
  • 26.
  • 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).
  • 29.
  • 30.
  • 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.
  • 32.
  • 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.