SlideShare una empresa de Scribd logo
1 de 6
Descargar para leer sin conexión
mukeshtekwani@hotmail.com [Mobile: 9869 488 356]
Mukesh N. Tekwani I/O MODULES Page 1 of 6
INPUT-OUTPUT MODULES
The computer will be of no use if it is not communicating with the external world. A
computer must have a system to receive information from outside world and must be able
to communicate results to external world. Thus, a computer consists of an I/O (input-
output) system. This system includes two basic components: (i) the I/O devices and (ii)
I/O module, which not only connects an I/O device with the system bus, but plays a very
crucial role in between. A device which is connected to an I/O module of computer is
called a peripheral device.
The input/output module (I/O module) is normally connected to the computer system on
one end and one or more input/output devices on the other. An I/O module is needed
because of :
(a) Diversity of I/O devices makes it difficult to include all the peripheral device logic
(i.e. its control commands, data format etc.) into CPU.
(b) The I/O devices are usually slower than the memory and CPU. Therefore, it is not
advisable to use them on high speed system bus directly for communication purpose.
(c) The data format and word length used by the peripheral may be quite different than
that of a CPU.
Thus, we can say that :
(i) An I/O module is a mediator between the processor and an I/O device/devices.
(ii) It controls the data exchange between the external devices and main memory; or
external devices and CPU registers.
(iii) An I/O module provide an interface internal to the computer which connects it to
CPU and main memory and an interface external to the computer connecting it to
external device or peripheral.
(iv) The I/O module should not only communicate the information from CPU to I/O
device, but it should also coordinate these two.
(v) In addition since there are speed differences between CPU and I/O devices, the
I/O module should have facilities like buffer (storage area) and error detection
mechanism.
Functions of I/O Module:
The major functions of an I/O module are:
1. Processor communication -- this involves the following tasks:
a. exchange of data between processor and I/O module,
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
mukeshtekwani@hotmail.com [Mobile: 9869 488 356]
Mukesh N. Tekwani I/O MODULES Page 2 of 6
b. command decoding - I/O module accepts commands sent from the processor.
E.g., the I/O module for a disk drive may accept the following commands
from the processor: READ SECTOR, WRITE SECTOR, SEEK track, etc.
c. status reporting – The device must be able to report its status to the processor,
e.g., disk drive busy, ready etc. Status reporting may also involve reporting
various errors.
d. Address recognition – Each I/O device has a unique address and the I/O
module must recognize this address.
2. Device communication – The I/O module must be able to perform device
communication such as status reporting.
3. Control & timing – The I/O module must be able to co-ordinate the flow of data
between the internal resources (such as processor, memory) and external devices.
4. Data buffering – This is necessary as there is a speed mismatch between speed of
data transfer between processor and memory and external devices. Data coming from
the main memory are sent to an I/O module in a rapid burst. The data is buffered in
the I/O module and then sent to the peripheral device at its rate.
5. Error detection – The I/O module must also be able to detect errors and report them
to the processor. These errors may be mechanical errors (such as paper jam in a
printer), or changes in the bit pattern of transmitted data. A common way of detecting
such errors is by using parity bits.
I/O Module Diagram
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
mukeshtekwani@hotmail.com [Mobile: 9869 488 356]
Mukesh N. Tekwani I/O MODULES Page 3 of 6
PROGRAMMED I/O:
Using this technique, data transfer takes place under the direct control of the processor.
The processor must continuously check an I/O device and hence it cannot do another
task. This method is hence inefficient (slow).
DB -- Data Bus, DAB – Device Address Bus, DC – Device Control signals
MAB – Memory Address Bus, CB – Control Bus
Characteristics of Programmed I/O:
1. In programmed I/O, the I/O operations are completely controlled by the CPU
2. Used in real-time and embedded systems.
3. Used in CPUs which have a single input and a single output instruction. Each of these
instructions selects one device.
4. The disadvantage of this technique is that the CPU spends most of its time waiting for
the device to become ready.
INTERRUPT DRIVEN INPUT/OUTPUT
The basic drawback of programmed I/O is that the speed of I/O devices is much slower in
comparison to that of CPU, and because the CPU has to repeatedly check whether a
device is free; or wait till the completion of I/O, therefore, the performance of CPU in
programmed I/O goes down tremendously. What is the solution? What about CPU going
back to do other useful work without waiting for the I/O device to complete or get freed
up. On completion of I/O, the I/O device interrupts the CPU to tell it has finished the
work.
Interrupt: The term interrupt is used for any event that causes temporary transfer of
control of CPU from one program to the other which is causing the interrupt. Interrupts
are primarily issued on:
Device and
Controller
DB/
DC
Registers
Status FF
DAB
Memory
Processor
MAB CB DB
CB
DB
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
mukeshtekwani@hotmail.com [Mobile: 9869 488 356]
Mukesh N. Tekwani I/O MODULES Page 4 of 6
· initiation of Input/Output operation (interrupt issued by I/O devices)
· completion of an Input/Output operation
· occurrence of hardware or software errors.
Interrupts can be generated by various sources internal or external to the CPU.
In the interrupt driven I/O the processor issues a READ/WRITE instruction to the device
and then continues doing its task. When the interface buffer is full, and it is ready to send
data to the processor, the interface sends a signal to the processor informing it that data is
ready. This signal is called as the interrupt signal. When the processor receives the
interrupt signal, it knows that the data is ready; it suspends its current job and transfers
data from buffer to its own registers.
Disadvantages of Interrupt–driven I/O technique:
The processor must suspend its work and later resume it. If there are many devices, each
can issue an interrupt and the processor must be able to attend each of these, based on
some priority.
The role of the processor in interrupt-driven I/O:
When an I/O device is ready to send data, the following events occur:
1. The device issues an interrupt signal to the processor.
2. The processor finishes execution of the current instruction. It then responds to the
interrupt signal.
3. The processor sends an acknowledgement signal to the device that sent the
interrupt. The device then removes its interrupt signal.
4. The processor must save the state of the current task(i.e., the values of registers,
the address of the next instruction to be executed, etc). These are saved onto a
stack.
5. The processor then attends to the device that issued to the interrupt signal.
6. When interrupt processing is over the saved registers are retrieved from the stack
and the processor continues its previous task from the point where it was last
stopped.
When the processor detects an interrupt, it executes an interrupt-service routine. This
routine polls each I/O device to determine which device caused the interrupt. This
technique is called software poll.
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
mukeshtekwani@hotmail.com [Mobile: 9869 488 356]
Mukesh N. Tekwani I/O MODULES Page 5 of 6
DIRECT MEMORY ACCESS:
This method eliminates the need for the continuous involvement of the processor in the
I/O operations. The data transfer now takes place as follows:
1. When a read instruction is encountered, the processor sends the device address via
the Device Address Bus (DAB). This is decoded by the I/O controller and the
DMA interface of the appropriate device is selected. The processor also sends the
address (in RAM) where the data is to be stored. The READ command is issued.
2. The processor continues with the next instruction in the program. It has no further
role to play in data transfer.
3. The DMA status register is set to 1 to indicate the BUSY status. Data is read from
the device and stored in the DMA’s data register (buffer).
4. When data has been entered in the data register, the data ready flip-flop is set to 1
and an interrupt is sent to the processor.
5. The processor completes the current instruction. It then gives control of MAB and
DB to the DMA interface. The DMA transfers data from its data registers to the
memory address specified.
Cycle Stealing:
The process of taking control of memory cycle to transfer data is known as cycle
stealing. The DMA transfers one data word at a time after which it must return control of
the buses to the CPU. The CPU delays its operations for 1 cycle to allow the DMA to
“steal” one memory cycle.
DMA is faster as the processor’s valuable time is not wasted in DMA transfer.
DA and CB
MAB
DB
MAB
DBMAB
Memory
Processor
DMA Interface
Status
Data Register
MAR
Device
and
Controller
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
mukeshtekwani@hotmail.com [Mobile: 9869 488 356]
Mukesh N. Tekwani I/O MODULES Page 6 of 6
IMPORTANT QUESTIONS
1. What is an I/O module? Illustrate with a neat diagram.
2. Justify the need for an I/O module in a computer system.
3. What are the major functions of an I/O module?
4. List and briefly define the three techniques of performing I/O.
5. What is an interrupt? Explain how a processor can take advantage of
an interrupt signal to reduce its waiting period to read input data.
6. State the advantages of direct memory access.
7. Elaborate the role of the processor in interrupt-driven I/O.
8. What is cycle stealing? Which I/O technique uses this method?
9. What is software polling?
10.Explain the following I/O techniques:
a. Programmed I/O
b. Interrupt-driven I/O
c. Direct memory access
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.

Más contenido relacionado

La actualidad más candente

Direct memory access
Direct memory accessDirect memory access
Direct memory accessshubham kuwar
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipeliningMazin Alwaaly
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer ArchitectureMaruf Abdullah (Rion)
 
Input output organisation
Input output organisationInput output organisation
Input output organisationSanjeev Patel
 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space ManagementAgnas Jasmine
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control UnitKamal Acharya
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O DevicesSlideshare
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference InstructionsRabin BK
 
Introduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationIntroduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationDr. Balaji Ganesh Rajagopal
 
Storage management
Storage managementStorage management
Storage managementAtul Sharma
 
Signed Addition And Subtraction
Signed Addition And SubtractionSigned Addition And Subtraction
Signed Addition And SubtractionKeyur Vadodariya
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusHem Pokhrel
 

La actualidad más candente (20)

Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
File allocation methods (1)
File allocation methods (1)File allocation methods (1)
File allocation methods (1)
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Interface
InterfaceInterface
Interface
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
Input output organisation
Input output organisationInput output organisation
Input output organisation
 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
 
Process state in OS
Process state in OSProcess state in OS
Process state in OS
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O Devices
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference Instructions
 
Introduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationIntroduction to Computer Architecture and Organization
Introduction to Computer Architecture and Organization
 
Storage management
Storage managementStorage management
Storage management
 
Signed Addition And Subtraction
Signed Addition And SubtractionSigned Addition And Subtraction
Signed Addition And Subtraction
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control Bus
 

Similar a Input-Output Modules

Input output concepts in operating systems
Input output concepts in operating systemsInput output concepts in operating systems
Input output concepts in operating systemsisitneededwhy
 
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
 
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
 
Bilgisayar Mimarisi 03, Feza BUZLUCA
Bilgisayar Mimarisi 03, Feza BUZLUCABilgisayar Mimarisi 03, Feza BUZLUCA
Bilgisayar Mimarisi 03, Feza BUZLUCAFeza BUZLUCA
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization faria_khan
 
Computer Operations & Packages
Computer Operations & PackagesComputer Operations & Packages
Computer Operations & PackagesMakaha Rutendo
 
Building Cultural Awareness through EmotionPresented By Team .docx
Building Cultural Awareness through EmotionPresented By Team .docxBuilding Cultural Awareness through EmotionPresented By Team .docx
Building Cultural Awareness through EmotionPresented By Team .docxhartrobert670
 
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 ports
input output portsinput output ports
input output portsaslamslides
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentationMuhammad Hamza
 
Msc chemistry previous
Msc chemistry previousMsc chemistry previous
Msc chemistry previousmshoaib15
 
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
 
CO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxCO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxahmedsalik057
 
Ch 7 io_management & disk scheduling
Ch 7 io_management & disk schedulingCh 7 io_management & disk scheduling
Ch 7 io_management & disk schedulingmadhuributani
 

Similar a Input-Output Modules (20)

IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Input output concepts in operating systems
Input output concepts in operating systemsInput output concepts in operating systems
Input output concepts in operating systems
 
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
 
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 Organization
I/O OrganizationI/O Organization
I/O Organization
 
Bilgisayar Mimarisi 03, Feza BUZLUCA
Bilgisayar Mimarisi 03, Feza BUZLUCABilgisayar Mimarisi 03, Feza BUZLUCA
Bilgisayar Mimarisi 03, Feza BUZLUCA
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
 
Computer Operations & Packages
Computer Operations & PackagesComputer Operations & Packages
Computer Operations & Packages
 
Building Cultural Awareness through EmotionPresented By Team .docx
Building Cultural Awareness through EmotionPresented By Team .docxBuilding Cultural Awareness through EmotionPresented By Team .docx
Building Cultural Awareness through EmotionPresented By Team .docx
 
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 ports
input output portsinput output ports
input output ports
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentation
 
comporgppt.pptx
comporgppt.pptxcomporgppt.pptx
comporgppt.pptx
 
unit-i.pdf
unit-i.pdfunit-i.pdf
unit-i.pdf
 
Msc chemistry previous
Msc chemistry previousMsc chemistry previous
Msc chemistry previous
 
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
 
CO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxCO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptx
 
IO hardware
IO hardwareIO hardware
IO hardware
 
Ch 7 io_management & disk scheduling
Ch 7 io_management & disk schedulingCh 7 io_management & disk scheduling
Ch 7 io_management & disk scheduling
 

Más de Mukesh Tekwani

Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelComputer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelMukesh Tekwani
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfMukesh Tekwani
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - PhysicsMukesh Tekwani
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion Mukesh Tekwani
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Mukesh Tekwani
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversionMukesh Tekwani
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion Mukesh Tekwani
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversionMukesh Tekwani
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Mukesh Tekwani
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prismMukesh Tekwani
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surfaceMukesh Tekwani
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomMukesh Tekwani
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesMukesh Tekwani
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEMukesh Tekwani
 

Más de Mukesh Tekwani (20)

Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelComputer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube Channel
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
 
Circular motion
Circular motionCircular motion
Circular motion
 
Gravitation
GravitationGravitation
Gravitation
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion
 
What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversion
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surface
 
Spherical mirrors
Spherical mirrorsSpherical mirrors
Spherical mirrors
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
 
Cyber Laws
Cyber LawsCyber Laws
Cyber Laws
 
XML
XMLXML
XML
 

Último

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 

Último (20)

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 

Input-Output Modules

  • 1. mukeshtekwani@hotmail.com [Mobile: 9869 488 356] Mukesh N. Tekwani I/O MODULES Page 1 of 6 INPUT-OUTPUT MODULES The computer will be of no use if it is not communicating with the external world. A computer must have a system to receive information from outside world and must be able to communicate results to external world. Thus, a computer consists of an I/O (input- output) system. This system includes two basic components: (i) the I/O devices and (ii) I/O module, which not only connects an I/O device with the system bus, but plays a very crucial role in between. A device which is connected to an I/O module of computer is called a peripheral device. The input/output module (I/O module) is normally connected to the computer system on one end and one or more input/output devices on the other. An I/O module is needed because of : (a) Diversity of I/O devices makes it difficult to include all the peripheral device logic (i.e. its control commands, data format etc.) into CPU. (b) The I/O devices are usually slower than the memory and CPU. Therefore, it is not advisable to use them on high speed system bus directly for communication purpose. (c) The data format and word length used by the peripheral may be quite different than that of a CPU. Thus, we can say that : (i) An I/O module is a mediator between the processor and an I/O device/devices. (ii) It controls the data exchange between the external devices and main memory; or external devices and CPU registers. (iii) An I/O module provide an interface internal to the computer which connects it to CPU and main memory and an interface external to the computer connecting it to external device or peripheral. (iv) The I/O module should not only communicate the information from CPU to I/O device, but it should also coordinate these two. (v) In addition since there are speed differences between CPU and I/O devices, the I/O module should have facilities like buffer (storage area) and error detection mechanism. Functions of I/O Module: The major functions of an I/O module are: 1. Processor communication -- this involves the following tasks: a. exchange of data between processor and I/O module, Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.
  • 2. mukeshtekwani@hotmail.com [Mobile: 9869 488 356] Mukesh N. Tekwani I/O MODULES Page 2 of 6 b. command decoding - I/O module accepts commands sent from the processor. E.g., the I/O module for a disk drive may accept the following commands from the processor: READ SECTOR, WRITE SECTOR, SEEK track, etc. c. status reporting – The device must be able to report its status to the processor, e.g., disk drive busy, ready etc. Status reporting may also involve reporting various errors. d. Address recognition – Each I/O device has a unique address and the I/O module must recognize this address. 2. Device communication – The I/O module must be able to perform device communication such as status reporting. 3. Control & timing – The I/O module must be able to co-ordinate the flow of data between the internal resources (such as processor, memory) and external devices. 4. Data buffering – This is necessary as there is a speed mismatch between speed of data transfer between processor and memory and external devices. Data coming from the main memory are sent to an I/O module in a rapid burst. The data is buffered in the I/O module and then sent to the peripheral device at its rate. 5. Error detection – The I/O module must also be able to detect errors and report them to the processor. These errors may be mechanical errors (such as paper jam in a printer), or changes in the bit pattern of transmitted data. A common way of detecting such errors is by using parity bits. I/O Module Diagram Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.
  • 3. mukeshtekwani@hotmail.com [Mobile: 9869 488 356] Mukesh N. Tekwani I/O MODULES Page 3 of 6 PROGRAMMED I/O: Using this technique, data transfer takes place under the direct control of the processor. The processor must continuously check an I/O device and hence it cannot do another task. This method is hence inefficient (slow). DB -- Data Bus, DAB – Device Address Bus, DC – Device Control signals MAB – Memory Address Bus, CB – Control Bus Characteristics of Programmed I/O: 1. In programmed I/O, the I/O operations are completely controlled by the CPU 2. Used in real-time and embedded systems. 3. Used in CPUs which have a single input and a single output instruction. Each of these instructions selects one device. 4. The disadvantage of this technique is that the CPU spends most of its time waiting for the device to become ready. INTERRUPT DRIVEN INPUT/OUTPUT The basic drawback of programmed I/O is that the speed of I/O devices is much slower in comparison to that of CPU, and because the CPU has to repeatedly check whether a device is free; or wait till the completion of I/O, therefore, the performance of CPU in programmed I/O goes down tremendously. What is the solution? What about CPU going back to do other useful work without waiting for the I/O device to complete or get freed up. On completion of I/O, the I/O device interrupts the CPU to tell it has finished the work. Interrupt: The term interrupt is used for any event that causes temporary transfer of control of CPU from one program to the other which is causing the interrupt. Interrupts are primarily issued on: Device and Controller DB/ DC Registers Status FF DAB Memory Processor MAB CB DB CB DB Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.
  • 4. mukeshtekwani@hotmail.com [Mobile: 9869 488 356] Mukesh N. Tekwani I/O MODULES Page 4 of 6 · initiation of Input/Output operation (interrupt issued by I/O devices) · completion of an Input/Output operation · occurrence of hardware or software errors. Interrupts can be generated by various sources internal or external to the CPU. In the interrupt driven I/O the processor issues a READ/WRITE instruction to the device and then continues doing its task. When the interface buffer is full, and it is ready to send data to the processor, the interface sends a signal to the processor informing it that data is ready. This signal is called as the interrupt signal. When the processor receives the interrupt signal, it knows that the data is ready; it suspends its current job and transfers data from buffer to its own registers. Disadvantages of Interrupt–driven I/O technique: The processor must suspend its work and later resume it. If there are many devices, each can issue an interrupt and the processor must be able to attend each of these, based on some priority. The role of the processor in interrupt-driven I/O: When an I/O device is ready to send data, the following events occur: 1. The device issues an interrupt signal to the processor. 2. The processor finishes execution of the current instruction. It then responds to the interrupt signal. 3. The processor sends an acknowledgement signal to the device that sent the interrupt. The device then removes its interrupt signal. 4. The processor must save the state of the current task(i.e., the values of registers, the address of the next instruction to be executed, etc). These are saved onto a stack. 5. The processor then attends to the device that issued to the interrupt signal. 6. When interrupt processing is over the saved registers are retrieved from the stack and the processor continues its previous task from the point where it was last stopped. When the processor detects an interrupt, it executes an interrupt-service routine. This routine polls each I/O device to determine which device caused the interrupt. This technique is called software poll. Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.
  • 5. mukeshtekwani@hotmail.com [Mobile: 9869 488 356] Mukesh N. Tekwani I/O MODULES Page 5 of 6 DIRECT MEMORY ACCESS: This method eliminates the need for the continuous involvement of the processor in the I/O operations. The data transfer now takes place as follows: 1. When a read instruction is encountered, the processor sends the device address via the Device Address Bus (DAB). This is decoded by the I/O controller and the DMA interface of the appropriate device is selected. The processor also sends the address (in RAM) where the data is to be stored. The READ command is issued. 2. The processor continues with the next instruction in the program. It has no further role to play in data transfer. 3. The DMA status register is set to 1 to indicate the BUSY status. Data is read from the device and stored in the DMA’s data register (buffer). 4. When data has been entered in the data register, the data ready flip-flop is set to 1 and an interrupt is sent to the processor. 5. The processor completes the current instruction. It then gives control of MAB and DB to the DMA interface. The DMA transfers data from its data registers to the memory address specified. Cycle Stealing: The process of taking control of memory cycle to transfer data is known as cycle stealing. The DMA transfers one data word at a time after which it must return control of the buses to the CPU. The CPU delays its operations for 1 cycle to allow the DMA to “steal” one memory cycle. DMA is faster as the processor’s valuable time is not wasted in DMA transfer. DA and CB MAB DB MAB DBMAB Memory Processor DMA Interface Status Data Register MAR Device and Controller Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.
  • 6. mukeshtekwani@hotmail.com [Mobile: 9869 488 356] Mukesh N. Tekwani I/O MODULES Page 6 of 6 IMPORTANT QUESTIONS 1. What is an I/O module? Illustrate with a neat diagram. 2. Justify the need for an I/O module in a computer system. 3. What are the major functions of an I/O module? 4. List and briefly define the three techniques of performing I/O. 5. What is an interrupt? Explain how a processor can take advantage of an interrupt signal to reduce its waiting period to read input data. 6. State the advantages of direct memory access. 7. Elaborate the role of the processor in interrupt-driven I/O. 8. What is cycle stealing? Which I/O technique uses this method? 9. What is software polling? 10.Explain the following I/O techniques: a. Programmed I/O b. Interrupt-driven I/O c. Direct memory access Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.