SlideShare ist ein Scribd-Unternehmen logo
1 von 26
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.

Weitere ähnliche Inhalte

Was ist angesagt?

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
 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OBharat Kharbanda
 
Computer registers
Computer registersComputer registers
Computer registersJatin Grover
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architectureSubesh Kumar Yadav
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit DesignVinit Raut
 

Was ist angesagt? (20)

Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
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
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
design of accumlator
design of accumlatordesign of accumlator
design of accumlator
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Computer registers
Computer registersComputer registers
Computer registers
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
Interface
InterfaceInterface
Interface
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
Microoperations
MicrooperationsMicrooperations
Microoperations
 

Ähnlich wie 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 architecturevikram patel
 
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.pdfAsst.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-1Neelam Kapoor
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptxSherinRappai
 
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-160922112930marangburu42
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csaAnjaan Gajendra
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-outputBBDITM LUCKNOW
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
Unit 4-l ecture3-io interface
Unit 4-l ecture3-io interfaceUnit 4-l ecture3-io interface
Unit 4-l ecture3-io interfacevishal choudhary
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interfacevishal choudhary
 
Unit 4-lecte3-io interface
Unit 4-lecte3-io interfaceUnit 4-lecte3-io interface
Unit 4-lecte3-io interfacevishal choudhary
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsMerin Jesuraj
 

Ähnlich wie 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-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
 
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
 

Kürzlich hochgeladen

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Kürzlich hochgeladen (20)

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 

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.