SlideShare una empresa de Scribd logo
1 de 41
IO Interface
Modes of transfer
Interrupt
Direct Memory Access
Introduction to IO Processor
Input Output Organization
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 Organization

Más contenido relacionado

La actualidad más candente

Instruction Cycle in Computer Organization.pptx
Instruction Cycle in Computer Organization.pptxInstruction Cycle in Computer Organization.pptx
Instruction Cycle in Computer Organization.pptxYash346903
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Direct memory access
Direct memory accessDirect memory access
Direct memory accessshubham kuwar
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unitAnuj Modi
 
Instruction Formats
Instruction FormatsInstruction Formats
Instruction FormatsRaaviKapoor
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer ArchitectureMaruf Abdullah (Rion)
 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
 

La actualidad más candente (20)

Interrupts
InterruptsInterrupts
Interrupts
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Instruction Cycle in Computer Organization.pptx
Instruction Cycle in Computer Organization.pptxInstruction Cycle in Computer Organization.pptx
Instruction Cycle in Computer Organization.pptx
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Cache memory
Cache memoryCache memory
Cache memory
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unit
 
Instruction Formats
Instruction FormatsInstruction Formats
Instruction Formats
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 

Similar a Input Output Organization

Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organizationvishal choudhary
 
Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organizationvishal choudhary
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxAshokRachapalli1
 
Input - output organzation
Input - output organzationInput - output organzation
Input - output organzationdaxesh chauhan
 
Modes of data transfer.computer architecture.
Modes of data transfer.computer architecture. Modes of data transfer.computer architecture.
Modes of data transfer.computer architecture. pratikkadam78
 
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
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentationMuhammad Hamza
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
Input/Output System (Part 2)
Input/Output System (Part 2) Input/Output System (Part 2)
Input/Output System (Part 2) Ajeng Savitri
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architectureraksharao
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfinfo998421
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
input output organization.pptx
input output organization.pptxinput output organization.pptx
input output organization.pptxMeenakshiR43
 

Similar a Input Output Organization (20)

Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organization
 
Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organization
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptx
 
Input - output organzation
Input - output organzationInput - output organzation
Input - output organzation
 
Unit3 input
Unit3 inputUnit3 input
Unit3 input
 
ch -6 IO.pptx
ch -6 IO.pptxch -6 IO.pptx
ch -6 IO.pptx
 
Modes of data transfer.computer architecture.
Modes of data transfer.computer architecture. Modes of data transfer.computer architecture.
Modes of data transfer.computer architecture.
 
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
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentation
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
Input/Output System (Part 2)
Input/Output System (Part 2) Input/Output System (Part 2)
Input/Output System (Part 2)
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architecture
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
Dma
DmaDma
Dma
 
IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
input output organization.pptx
input output organization.pptxinput output organization.pptx
input output organization.pptx
 

Más de Kamal Acharya

Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computerKamal Acharya
 
Introduction to Computer Security
Introduction to Computer SecurityIntroduction to Computer Security
Introduction to Computer SecurityKamal Acharya
 
Making decision and repeating in PHP
Making decision and repeating  in PHPMaking decision and repeating  in PHP
Making decision and repeating in PHPKamal Acharya
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in phpKamal Acharya
 
Text and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPText and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPKamal Acharya
 
Capacity Planning of Data Warehousing
Capacity Planning of Data WarehousingCapacity Planning of Data Warehousing
Capacity Planning of Data WarehousingKamal Acharya
 
Information Privacy and Data Mining
Information Privacy and Data MiningInformation Privacy and Data Mining
Information Privacy and Data MiningKamal Acharya
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data MiningKamal Acharya
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data miningKamal Acharya
 
Introduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingIntroduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingKamal Acharya
 

Más de Kamal Acharya (20)

Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
Computer Arithmetic
Computer ArithmeticComputer Arithmetic
Computer Arithmetic
 
Introduction to Computer Security
Introduction to Computer SecurityIntroduction to Computer Security
Introduction to Computer Security
 
Session and Cookies
Session and CookiesSession and Cookies
Session and Cookies
 
Functions in php
Functions in phpFunctions in php
Functions in php
 
Web forms in php
Web forms in phpWeb forms in php
Web forms in php
 
Making decision and repeating in PHP
Making decision and repeating  in PHPMaking decision and repeating  in PHP
Making decision and repeating in PHP
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in php
 
Text and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPText and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHP
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Capacity Planning of Data Warehousing
Capacity Planning of Data WarehousingCapacity Planning of Data Warehousing
Capacity Planning of Data Warehousing
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
 
Search Engines
Search EnginesSearch Engines
Search Engines
 
Web Mining
Web MiningWeb Mining
Web Mining
 
Information Privacy and Data Mining
Information Privacy and Data MiningInformation Privacy and Data Mining
Information Privacy and Data Mining
 
Cluster Analysis
Cluster AnalysisCluster Analysis
Cluster Analysis
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data Mining
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data mining
 
Data Preprocessing
Data PreprocessingData Preprocessing
Data Preprocessing
 
Introduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingIntroduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data Warehousing
 

Último

4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Último (20)

4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

Input Output Organization

  • 1. IO Interface Modes of transfer Interrupt Direct Memory Access Introduction to IO Processor Input Output Organization
  • 2. 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:
  • 3.
  • 4. I/O Bus and Interface Modules
  • 5.  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.
  • 6.  There are four types of IO command:  Control Command  Status Command  Output Data Command  Input Data Command
  • 7. 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.
  • 8.  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.
  • 9.  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.
  • 10.  It assign address for each interface which cannot be used for memory words.  This configuration is referred to as memory- mapped IO.
  • 11. 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)
  • 12. 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.
  • 14.  The transfer of data requires three instructions:
  • 15. 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.
  • 16.  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.
  • 17. 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.
  • 18.  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.
  • 19. 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.
  • 20. 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.
  • 21. 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)
  • 22.  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.
  • 23.
  • 24. 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.
  • 25.  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).
  • 26.
  • 27.
  • 28. 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.
  • 29.
  • 30.  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.
  • 31.  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.
  • 33. 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.
  • 34. 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.
  • 35.  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
  • 36.  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.
  • 37. 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.
  • 38. IOP
  • 39. 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.
  • 40. IOP  Instructions that are read from memory by IOP are called commands to distinguish them from instructions that are read by the CPU.