SlideShare a Scribd company logo
INPUT/OUTPUT
ORGANIZATION
2013BTECHCSE005 –ANKIT RAO
2013BTMTECH003 - SHIVANK SINGH
2013BTMTECH002- RAJDEEP SHARMA
2014BTECHCSE151 –SHIVANGI GRAG
INPUT/OUTPUT ORGANIZATION
Accessing I/O DEVICES
The computer system's input/output (I/O) architecture is its interface to the
outside world.
● Till now we have discussed the two important modules of the computer
system -
❍ The processor and
❍ The memory.
● The third key component of a computer system is a set of I/O modules
● Each I/O module interfaces to the system bus and controls one or more
peripheral devices.
1. There are several reasons why an I/O device or peripheral device is
not directly connected to the system bus.
2. Some of them are as follows -
● There are a wide variety of peripherals with various methods of
operation. It would be impractical to include the necessary logic
within the processor to control several devices.
● The data transfer rate of peripherals is often much slower than
that of the memory or processor. Thus, it is impractical to use the high-
speed system bus to communicate directly with a peripheral.
● Peripherals often use different data formats and word lengths
than the computer to which they are attached.
--> Thus, an I/O module is required.
The major functions of an I/O module are
categorized as follows –
 ❍ Control and timing
 ❍ Processor Communication
 ❍ Device Communication
 ❍ Data Buffering
 ❍ Error Detection
CPU Communication:
 Processor sends commands to the I/O system which are generally the control
signals on the control bus.
 Exchange of data between the processor and the I/O interface over the data
bus.
 Check whether the devices are ready or not.
Processor & Device Communication:
 During the I/O operation, the I/O module must communicate with the
processor and with the external device.
 The I/O must be able to perform device communication. This
communication involves command, status information and data.
Data Buffering:
 Data transfer rate is too high .
 Data from processor and memory are sent to an I/O interface, buffered and
then sent to the peripheral device at its data rate.
Error Detection:
 I/O interface is responsible for error detection
 Used to report errors to the processor.
 Types of errors:
 Mechanical, electrical malfunctions, bad disk track, unintentional changes.
MAPPING
Memory And I/O Addressing
 Set of all possible addresses that can be generated by CPU is called address
space. CPU can directly address all the addresses of it’s address space
 Memory addressing capacity depends upon number of address lines in CPU
 E.g. 8086 intel microprocessor has 20 address lines and can address 1MB of
memory directly using 20 bit address bus
 Thus 1mb is the address space of INTEL 8086 microprocessor
Two Methods Of Mapping
There are two techniques for addressing an I/O
device by CPU:
 Memory mapped I/O
 I/O mapped I/O (Standard I/O or Isolated I/O or
port I/O)
ISOLATED I/O
 Here two separate address spaces are used - one for memory location
and other for I/O devices.
 The I/O devices are provided dedicated address space.
 Hence there are two separate control lines for memory and I/O transfer.
I/O read and I/O write lines for I/O transfer
Memory Write and Memory Read for memory transfer
 Hence IN and OUT instruction deals with I/O transfer and MOV with
memory transfer.
MEMORY MAPPED I/O
 The technique in which CPU addresses an I/O device just like a memory
location is called memory mapped I/O scheme.
 In this scheme only one address space is used by CPU. Some addresses
of the address space are assigned to memory location and other are
assigned to I/O devices.
 There is only one set of read and write lines. Hence there is no separate
IN,OUT instructions. MOVE instruction can be used to accomplish both
the transfer.
 The instructions used to manipulate the memory can be used for I/O
devices.
ISOLATED Vs. MEMORY MAPPED
I/O
ISOLATED I/O MEMORY MAPPEED I/O
IN INTEL 8086
 8086 has both memory mapped and I/O mapped I/O. The video RAM are memory
mapped where as the Keyboard , Counter and Other devices are I/O Mapped.
 To distinguish between the memory read/write and I/O read or write, M/IO signal
is used.
• If M/IO =1, it indicates that the address present in address bus is the address of an
I/O device.
• if M/IO=0, it indicates that the address present in address bus is the address of a
memory location
 Intel 8080,zilog z80,8088 - I/O mapped I/O
 Pentium processors mostly use the isolated I/O method but provides both
schemes and Motorola 68000-uses memory mapped I/O
 IBM pc use both memory mapped I/O and I/O mapped I/O
I/O Mapped I/O
Advantages
 1 MB memory address space is available for use with
memory.
 Special Instructions for I/O operations maximize I/O
performance.
 Used in system where complete memory capacity is
required
Disadvantages
 Data has to be transferred to the accumulator (any one of the internal
register ) to perform arithmetic and logic operation
Advantages
 All I/O locations are addressed in exactly the same manner as memory
locations; no special repertoire of I/O instructions is therefore .Thus the overall
size of the instruction set is reduced.
 All arithmetic and logical operations can be performed on I/O data directly
 Used in system where memory requirement is small
Disadvantages
 Part of the memory address space is lost. (however, that with ported I/O
systems, not all of the available I/O address space is always used.)
MEMORY MAPPED I/O
Input output subsystem
Programmed I/O:
Under direct control of CPU.
Interrupt I/O:
During initiation, CPU inform interface
At end interface interrupts CPU.
DMA:
CPU doesn’t come into the picture at all.
INTERRUPT
• PRIORITY
• DAISY
CHAINING
DAISY CHAINING
DMA
ERROR DETECTION:
HAMMING CODE
 We introduce additional bit in a data stream.
 Odd parity has an XOR 1
 Even parity has an XOR 0
CRC Code
Cycle
redundancy
check-
Chunk of data
Code length
depends on
generating
polynomial.
Shift registers
and XOR gates
are used.
BUSES
 In computer architecture, a bus (related to the Latin “omnibus",
meaning "for all") is a communication system that transfers data
between components inside a computer, or between computers.
This expression covers all related hardware components (wire,
optical fibre , etc.) and software, including communication
protocols.
 Bus lines may be grouped into three types:
 Data
 Address
 Control
 Control signals specify:
 Whether it is a read or a write operation.
 Required size of the data, when several operand sizes (byte, word, long
word) are possible.
 Timing information to indicate when the processor and I/O devices may
place data or receive data from the bus.
 Schemes for timing of data transfers over a bus can be classified
into:
 Synchronous,
 Asynchronous.
Synchronous Bus
 In a synchronous bus, all the devices are synchronised by a
common clock, so all devices derive timing information from a
common clock line of the bus. A clock pulse on this common clock
line defines equal time intervals.
 In the simplest form of a synchronous bus, each of these clock pulse
constitutes a bus cycle during which one data transfer can take
place.
Asynchronous Bus
 In asynchronous mode of transfer, a handshake signal is used between master and slave.
 In asynchronous bus, there is no common clock, and the common clock signal is replaced
by two timing control signals: master-ready and slave-ready. Master-
ready signal is assured by the master to indicate that it is ready for a transaction, and slave-
ready signal is a response from the slave.
 The handshaking protocol proceeds as follows:
● The master places the address and command information on the bus.
Then it indicates to all devices that it has done so by activating the master-ready signal.
● This causes all devices on the bus to decode the address.
● The selected target device performs the required operation and inform the
processor (or master) by activating the slave-ready line.
● The master waits for slave-ready to become asserted before it remove its signals from
the bus.
● In case of a read operation, it also strobes the data into its input buffer.
Asynchronous vs. Synchronous bus
 Advantages of asynchronous bus:
 Eliminates the need for synchronization between the sender and the
receiver.
 Can accommodate varying delays automatically, using the Slave-
ready signal.
 Disadvantages of asynchronous bus:
 Data transfer rate with full handshake is limited by two-round trip delays.
 Data transfers using a synchronous bus involves only one round trip
delay, and hence a synchronous bus can achieve faster rates.

More Related Content

What's hot

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
MOHIT AGARWAL
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
Roshan kumar sahu
 
Introduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationIntroduction to Computer Architecture and Organization
Introduction to Computer Architecture and Organization
Dr. Balaji Ganesh Rajagopal
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
Muhammad Sheharyar Asif
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
abhikalmegh
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Input output interface
Input output interfaceInput output interface
Input output interface
Christ University
 
IO Techniques in Computer Organization
IO Techniques in Computer OrganizationIO Techniques in Computer Organization
IO Techniques in Computer Organization
Om Prakash
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
abdosaidgkv
 
Interrupt
InterruptInterrupt
Interrupt
Siddique Ibrahim
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transfer
priya Nithya
 
Interrupts
InterruptsInterrupts
Interrupts
guest2e9811e
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
Vikas Gupta
 
Computer architecture memory system
Computer architecture memory systemComputer architecture memory system
Computer architecture memory system
Mazin Alwaaly
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
AMAN SRIVASTAVA
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 

What's hot (20)

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
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Introduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationIntroduction to Computer Architecture and Organization
Introduction to Computer Architecture and Organization
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 
I/O Ports
I/O Ports I/O Ports
I/O Ports
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
IO Techniques in Computer Organization
IO Techniques in Computer OrganizationIO Techniques in Computer Organization
IO Techniques in Computer Organization
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
Interrupt
InterruptInterrupt
Interrupt
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transfer
 
Interrupts
InterruptsInterrupts
Interrupts
 
Input output module
Input output moduleInput output module
Input output module
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
 
Computer architecture memory system
Computer architecture memory systemComputer architecture memory system
Computer architecture memory system
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 

Similar to Input output accessing

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
vikram patel
 
Unit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.pptUnit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.ppt
prateeksingh235912
 
CS304PC:Computer Organization and Architecture Unit IV_merged.pdf
CS304PC:Computer Organization and Architecture Unit IV_merged.pdfCS304PC:Computer Organization and Architecture Unit IV_merged.pdf
CS304PC:Computer Organization and Architecture Unit IV_merged.pdf
Asst.prof M.Gokilavani
 
The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...
Sindhu Mani
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 
Input output
Input outputInput output
Input output
jyoti_lakhani
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptx
SherinRappai
 
Unit 5
Unit 5Unit 5
Unit 5
sowndaryaM5
 
IO and file systems
IO and file systems IO and file systems
IO and file systems
EktaVaswani2
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesRavali Sunki
 
Iosystemspre final-160922112930
Iosystemspre final-160922112930Iosystemspre final-160922112930
Iosystemspre final-160922112930
marangburu42
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
Anjaan Gajendra
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-output
BBDITM LUCKNOW
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
abinrj123
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interface
vishal choudhary
 
Unit 4-l ecture3-io interface
Unit 4-l ecture3-io interfaceUnit 4-l ecture3-io interface
Unit 4-l ecture3-io interface
vishal choudhary
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interface
vishal choudhary
 
8085 microprocessor
8085 microprocessor8085 microprocessor
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsMerin Jesuraj
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
JavedIqbal549896
 

Similar to Input output accessing (20)

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
 
Unit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.pptUnit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.ppt
 
CS304PC:Computer Organization and Architecture Unit IV_merged.pdf
CS304PC:Computer Organization and Architecture Unit IV_merged.pdfCS304PC:Computer Organization and Architecture Unit IV_merged.pdf
CS304PC:Computer Organization and Architecture Unit IV_merged.pdf
 
The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
Input output
Input outputInput output
Input output
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptx
 
Unit 5
Unit 5Unit 5
Unit 5
 
IO and file systems
IO and file systems IO and file systems
IO and file systems
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
Iosystemspre final-160922112930
Iosystemspre final-160922112930Iosystemspre final-160922112930
Iosystemspre final-160922112930
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-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
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interface
 
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
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applications
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 

Recently uploaded

CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 

Input output accessing

  • 1. INPUT/OUTPUT ORGANIZATION 2013BTECHCSE005 –ANKIT RAO 2013BTMTECH003 - SHIVANK SINGH 2013BTMTECH002- RAJDEEP SHARMA 2014BTECHCSE151 –SHIVANGI GRAG
  • 2. INPUT/OUTPUT ORGANIZATION Accessing I/O DEVICES The computer system's input/output (I/O) architecture is its interface to the outside world. ● Till now we have discussed the two important modules of the computer system - ❍ The processor and ❍ The memory. ● The third key component of a computer system is a set of I/O modules ● Each I/O module interfaces to the system bus and controls one or more peripheral devices.
  • 3. 1. There are several reasons why an I/O device or peripheral device is not directly connected to the system bus. 2. Some of them are as follows - ● There are a wide variety of peripherals with various methods of operation. It would be impractical to include the necessary logic within the processor to control several devices. ● The data transfer rate of peripherals is often much slower than that of the memory or processor. Thus, it is impractical to use the high- speed system bus to communicate directly with a peripheral. ● Peripherals often use different data formats and word lengths than the computer to which they are attached. --> Thus, an I/O module is required.
  • 4. The major functions of an I/O module are categorized as follows –  ❍ Control and timing  ❍ Processor Communication  ❍ Device Communication  ❍ Data Buffering  ❍ Error Detection
  • 5. CPU Communication:  Processor sends commands to the I/O system which are generally the control signals on the control bus.  Exchange of data between the processor and the I/O interface over the data bus.  Check whether the devices are ready or not. Processor & Device Communication:  During the I/O operation, the I/O module must communicate with the processor and with the external device.  The I/O must be able to perform device communication. This communication involves command, status information and data.
  • 6. Data Buffering:  Data transfer rate is too high .  Data from processor and memory are sent to an I/O interface, buffered and then sent to the peripheral device at its data rate. Error Detection:  I/O interface is responsible for error detection  Used to report errors to the processor.  Types of errors:  Mechanical, electrical malfunctions, bad disk track, unintentional changes.
  • 7. MAPPING Memory And I/O Addressing  Set of all possible addresses that can be generated by CPU is called address space. CPU can directly address all the addresses of it’s address space  Memory addressing capacity depends upon number of address lines in CPU  E.g. 8086 intel microprocessor has 20 address lines and can address 1MB of memory directly using 20 bit address bus  Thus 1mb is the address space of INTEL 8086 microprocessor
  • 8. Two Methods Of Mapping There are two techniques for addressing an I/O device by CPU:  Memory mapped I/O  I/O mapped I/O (Standard I/O or Isolated I/O or port I/O)
  • 9. ISOLATED I/O  Here two separate address spaces are used - one for memory location and other for I/O devices.  The I/O devices are provided dedicated address space.  Hence there are two separate control lines for memory and I/O transfer. I/O read and I/O write lines for I/O transfer Memory Write and Memory Read for memory transfer  Hence IN and OUT instruction deals with I/O transfer and MOV with memory transfer.
  • 10. MEMORY MAPPED I/O  The technique in which CPU addresses an I/O device just like a memory location is called memory mapped I/O scheme.  In this scheme only one address space is used by CPU. Some addresses of the address space are assigned to memory location and other are assigned to I/O devices.  There is only one set of read and write lines. Hence there is no separate IN,OUT instructions. MOVE instruction can be used to accomplish both the transfer.  The instructions used to manipulate the memory can be used for I/O devices.
  • 11. ISOLATED Vs. MEMORY MAPPED I/O ISOLATED I/O MEMORY MAPPEED I/O
  • 12. IN INTEL 8086  8086 has both memory mapped and I/O mapped I/O. The video RAM are memory mapped where as the Keyboard , Counter and Other devices are I/O Mapped.  To distinguish between the memory read/write and I/O read or write, M/IO signal is used. • If M/IO =1, it indicates that the address present in address bus is the address of an I/O device. • if M/IO=0, it indicates that the address present in address bus is the address of a memory location  Intel 8080,zilog z80,8088 - I/O mapped I/O  Pentium processors mostly use the isolated I/O method but provides both schemes and Motorola 68000-uses memory mapped I/O  IBM pc use both memory mapped I/O and I/O mapped I/O
  • 13. I/O Mapped I/O Advantages  1 MB memory address space is available for use with memory.  Special Instructions for I/O operations maximize I/O performance.  Used in system where complete memory capacity is required Disadvantages  Data has to be transferred to the accumulator (any one of the internal register ) to perform arithmetic and logic operation
  • 14. Advantages  All I/O locations are addressed in exactly the same manner as memory locations; no special repertoire of I/O instructions is therefore .Thus the overall size of the instruction set is reduced.  All arithmetic and logical operations can be performed on I/O data directly  Used in system where memory requirement is small Disadvantages  Part of the memory address space is lost. (however, that with ported I/O systems, not all of the available I/O address space is always used.) MEMORY MAPPED I/O
  • 16. Programmed I/O: Under direct control of CPU. Interrupt I/O: During initiation, CPU inform interface At end interface interrupts CPU. DMA: CPU doesn’t come into the picture at all.
  • 19. DMA
  • 20. ERROR DETECTION: HAMMING CODE  We introduce additional bit in a data stream.  Odd parity has an XOR 1  Even parity has an XOR 0
  • 21. CRC Code Cycle redundancy check- Chunk of data Code length depends on generating polynomial. Shift registers and XOR gates are used.
  • 22. BUSES  In computer architecture, a bus (related to the Latin “omnibus", meaning "for all") is a communication system that transfers data between components inside a computer, or between computers. This expression covers all related hardware components (wire, optical fibre , etc.) and software, including communication protocols.
  • 23.  Bus lines may be grouped into three types:  Data  Address  Control  Control signals specify:  Whether it is a read or a write operation.  Required size of the data, when several operand sizes (byte, word, long word) are possible.  Timing information to indicate when the processor and I/O devices may place data or receive data from the bus.  Schemes for timing of data transfers over a bus can be classified into:  Synchronous,  Asynchronous.
  • 24. Synchronous Bus  In a synchronous bus, all the devices are synchronised by a common clock, so all devices derive timing information from a common clock line of the bus. A clock pulse on this common clock line defines equal time intervals.  In the simplest form of a synchronous bus, each of these clock pulse constitutes a bus cycle during which one data transfer can take place.
  • 25. Asynchronous Bus  In asynchronous mode of transfer, a handshake signal is used between master and slave.  In asynchronous bus, there is no common clock, and the common clock signal is replaced by two timing control signals: master-ready and slave-ready. Master- ready signal is assured by the master to indicate that it is ready for a transaction, and slave- ready signal is a response from the slave.  The handshaking protocol proceeds as follows: ● The master places the address and command information on the bus. Then it indicates to all devices that it has done so by activating the master-ready signal. ● This causes all devices on the bus to decode the address. ● The selected target device performs the required operation and inform the processor (or master) by activating the slave-ready line. ● The master waits for slave-ready to become asserted before it remove its signals from the bus. ● In case of a read operation, it also strobes the data into its input buffer.
  • 26. Asynchronous vs. Synchronous bus  Advantages of asynchronous bus:  Eliminates the need for synchronization between the sender and the receiver.  Can accommodate varying delays automatically, using the Slave- ready signal.  Disadvantages of asynchronous bus:  Data transfer rate with full handshake is limited by two-round trip delays.  Data transfers using a synchronous bus involves only one round trip delay, and hence a synchronous bus can achieve faster rates.