SlideShare ist ein Scribd-Unternehmen logo
1 von 43
I/O Organization
By
Zaynab
Contents
 I/O Organization
 Peripheral Devices
 Input-Output Interface
 Input / Output System
 Programmed I/O
 Direct Memory Access (DMA)
 Interrupt
I/O Organization
The Input / output organization of computer depends
upon the size of computer and the peripherals
connected to it. The I/O Subsystem of the computer,
provides an efficient mode of communication
between the central system and the outside
environment.
Peripheral Devices
An external device connected to an I/O module
Provide a means of exchanging data between the
external device environment and the computer.
Attach to the computer by a link to an I/O module
The link is used to exchange control, status, and
data between the I/O module and the external
device.
Peripheral Devices
The most common input output devices are:
i) Monitor
ii) Keyboard
iii) Mouse
iv) Printer
v) Magnetic tapes
The devices that are under the direct control of the
computer are said to be connected online.
Peripheral Devices
Three categories of external device:
Human readable
Suitable for communicating with the computer user
Video display terminals (VDTs), printers.
Machine readable
Suitable for communicating with equipment
Magnetic disk and tape systems, sensors and actuators.
Communication
Suitable for communicating with remote devices such as a
terminal, a machine readable device, or another
computer.
Input - Output Interface
Input Output Interface provides a method for
transferring information between internal storage
(such as memory and CPU registers) and external
I/O devices. Peripherals connected to a computer
need special communication links for interfacing
them with the central processing unit.
Input - Output Interface
The purpose of communication link is to
resolve the differences that exist between
the central computer and each peripheral.
The Major Differences are:-
1. Peripherals are electromechanically and electromagnetic
devices and their manner of operation of the CPU and
memory, which are electronic devices. Therefore, a
conversion of signal values may be needed.
2. The data transfer rate of peripherals is usually slower
than the transfer rate of CPU and consequently, a
synchronization mechanism may be needed.
The Major Differences are:-
3. Data codes and formats in the peripherals differ from
the word format in the CPU and memory.
Peripherals- Byte, Block, …
CPU or memory- word.
4. The operating modes of peripherals are different from
each other and must be controlled so as not to disturb
the operation of other peripherals connected to the
CPU.
Input - Output Interface
To Resolve these differences, computer systems
include special hardware components between the
CPU and Peripherals to supervises and synchronizes
all input and out transfers. These components are
called Interface Units because they interface
between the processor bus and the peripheral devices.
i/o module function
 Control and timing: cordinates the flow of traffic between
internal resources and external devices.
 Processor communication: involves command decoding
data status reporting address recognition.
 Error detection: detect and reports transmission errors.
 Data buffering: perform the needed buffeing operation to
balance device and memory speeds.
 Device communication: involves commands, status
information and data.
I/O Module Structure
I/O BUS and Interface Module
It defines the typical link between the processor and
several peripherals. The I/O Bus consists of data
lines, address lines and control lines.
Processor
Interface Interface Interface
Keyboard
and
display
terminal
Printer Magnetic
disk
Data line
Address line
Control line
Connection of I/O bus to input-output devices
I/O BUS and Interface Module
I/O Commands
There are four types of I/O commands that an I/O module may
receive when it is addressed by a processor:
Control
- used to activate a peripheral and tell it what to do.
Test
- used to test various status conditions associated with
an I/O module and its peripherals.
Read
- causes the I/O module to obtain an item of data from
the peripheral and place it in an internal buffer.
Write
- causes the I/O module to take an item of data from the
data bus and subsequently transmit that data item to the
peripheral.
Input / Output System
There are two methods in which the Processor can address the
input/output devices:
In the First arrangement, I/O devices are assigned particular addresses,
isolated from the address space assigned to the memory . The execution of an
input instruction at an input device address will cause the character stored in the
input register of that device to be transferred to a specific register in the CPU.
Similarly, the execution of an output instruction . This arrangement, called
”Shared I/O’’, in the case, the address and data lines from the CPU
can be shared between the memory and I/O devices. A separate control
line will have to be used. This is because of the need for executing input and
output instruction.
Input/ Output System
The main Advantage of the Shared I/O arrangement is
the Separation between the memory address space and
that of the I/O devices.
Its main Disadvantage is the need to have special input
and output instruction in the processor instruction set.
processor Memory
Address Bus
Data Bus
Memory Control Bus
Figure( Memory-mapped I/O arrangement )
Output Device
(Graphic Display)
Input Device
(Keyboard)
Input/ Output System
The Second, possible I/O arrangement is deal with input and output
registers as if they are regular memory locations. For example, Read
Device 6 is equivalent to performing an input operation from the
input register in Device #6. Similarly, a write operation. This
arrangement is called Memory – Mapped I/O.
The main advantage of the memory-mapped I/O is the
use of the read and write instructions of the processor to
perform the input and output operations, respectively. It
eliminates the need for introducing special I/O instructions.
The main Disadvantage of the memory-mapped I/O is
the need to reserve a certain part of the memory address
space for addressing I/O devices, that is, a reduction in the
available memory address space.
I/O Mapping Summary
Memory mapped I/O
Devices and memory share an address space.
`I/O looks just like memory read/write
No special commands for I/O
Large selection of memory access commands
available
Isolated I/O
Separate address spaces
Need I/O or memory select lines
Special commands for I/O
Limited set
Input Output Techniques
Programmed I/O
Programmed i/o refers to data transfers initiated by a (cpu)
under driver software control to access registers or memory
on a device.
The cpu issues a command then waits for i/o operations to
be complete. As the cpu is faster than the i/o module, the
problem with programmed i/o is that the cpu has to wait
along time for the i/o module of concern to be ready for
either reception or transmission of data .the cpu, while
waiting must repeatedly check the status of the i/o module,
and this process is known as polling . As a result , the level
of the performance of the entire system is severely
degraded.
Programmed i/o basically works in these ways :
Programmed I/O - detail
•CPU requests I/O operation.
•I/O module performs operation.
•I/O module sets status bits.
•CPU checks status bits periodically.
•I/O module does not inform CPU
directly.
•I/O module does not interrupt CPU.
•CPU may wait or come back later.
I/O Commands
•CPU issues address
Identifies module (& device if >1 per module)
•CPU issues command
Control - telling module what to do
e.g. spin up disk
Test - check status
e.g. power? Error?
Read/Write
Module transfers data via buffer from/to
device
Interrupt Driven I/O
The CPU issues commands to the i/o module then proceeds with
its normal work until interrupted by i/o device on completion
of its work. For input, the device interrupts the cpu when new data
has arrived and is ready to be arrived by the system processor .
The actual actions to perform depend on whether the device uses
i/o ports, memory mapping.
For output, the deice delivers an interrupt either when it is ready to
accept new data or to acknowledge asuccessful data transfer.
Memory mapped and DMA- capable device usualy generate
interrupt to tell the system they are done with the buffer . although
interrupt relieves the cpu of having to waite for the device, but it is
still inefficient in data transfer of large amount because the cpu has
to transfer the data word by word between i/o module and memory
. Below are the basic operations of interrupt.
.
Interrupt Driven I/O
Basic Operation
•CPU issues read command.
•I/O module gets data from peripheral whilst CPU
does other work.
•I/O module interrupts CPU.
•CPU requests data.
•I/O module transfers data.
Types of Interrupts
Hardware Interrupts: If the signal for the processor is from
external device or hardware is called hardware interrupts.
Example: from keyboard we will press the key to do some
action this pressing of key in keyboard will generate a signal
which is given to the processor to do action, such interrupts
are called hardware interrupts. Hardware interrupts can be
classified into two types they are:
•Maskable Interrupt: The hardware interrupts which can be
delayed when a much highest priority interrupt has occurred
to the processor.
•Non Maskable Interrupt: The hardware which cannot be
delayed and should process by the processor immediately.
Software Interrupts: Software interrupt can also divided in
:to two types. They are
•Normal Interrupts: the interrupts which are caused by the
software instructions are called software instructions.
•Exception: unplanned interrupts while executing a program
is called Exception. For example: while executing a program
if we got a value which should be divided by zero is called a
exception.
Design Issues
How do you identify the module issuing the
interrupt?
How do you deal with multiple interrupts?
i.e. an interrupt handler being interrupted
Identifying Interrupting Module (1)
Different line for each module.
PC
Limits number of devices.
Software poll.
CPU asks each module in turn
Slow
Identifying Interrupting Module (2)
•Daisy Chain or Hardware poll
-Interrupt Acknowledge sent down a chain
-Module responsible places vector on bus
-CPU uses vector to identify handler routine
•Bus Master
Module must claim the bus before it can raise
interrupt
e.g. PCI & SCSI
Direct Memory Access (DMA)
Direct Memory Access (DMA) means CPU grants I/O module authority to
read from or write to memory without involvement DMA module controls
exchange of data between main memory and the I/O device. Because of
DMA device can transfer data directly to and from memory, rather than
using the CPU as an intermediary, and can thus relieve congestion on the
bus. CPU is only involved at the beginning and end of the transfer and
interrupted only after entire block has been transferred . Direct Memory
Access needs a special hardware called DMA controller (DMAC) that
manages the data transfers and arbitrates access to the system bus. The
controllers are programmed with source and destination pointers (where
to read/write the data), counters to track the number of transferred bytes,
and settings, which includes I/O and memory types, interrupts and states
for the CPU cycles.DMA increases system concurrency by allowing the
CPU to perform tasks while the DMA system transfers data via the system
and memory busses. Hardware design is complicated because the DMA
controller must be integrated into the system, and the system must allow
the DMA controller to be a bus master. Cycle stealing may also be
necessary to allow the CPU and DMA controller to share use of the
memory bus.
DMA controller
DMA controller has an address register, data count
register, control logic.
address register :contaains an address that specifies the
memory location of the data to be transferred. The DMA
controller automatically increment the address register after
each word transfere, so the transfere will be from the next
memory location.
data count register:holds the number of words to be transfere
,the word count is decremented by one after each word
transfere .
control logic:specifies the transfere mode ( number of DMA
operation they spport).
DMA transfer types:
-Burst mode
the DMA controller keeps control of the bus until all
the data has been transferred to (from ) memory
from (to) the peripheral device. This mode of
transfere is nneeded for fast devices where data
transfere cannot be stopped until the entir transfer
is done .
- Single – cycle mode
the DMA controller releasing the bus after each
transfer of one data word . This minimizes the
amount of time that the DMA controller keeps the
CPU from controlling the bus , but it requires that
the bus request / acknowledge sequence be
performed for every single transfer. the Single –
cycle mode is preferred if the peripheral devices
can buffer very large amounts of data , causing
the DMA controller to tie up the bus for an
excessive amount of time.
DMA Module Diagram
DMA Operation
CPU carries on with other work.
CPU tells DMA controller.
Read/Write.
Device address.
Starting address of memory block for data.
Amount of data to be transferred.
DMA controller deals with transfer.
DMA controller sends interrupt when finished.
DMA Configurations (1)
•Single Bus, Detached DMA
controller
•Each transfer uses bus twice
•I/O to DMA then DMA to
memory
•CPU is suspended twice
DMA Configurations (2)
•Single Bus, Integrated DMA controller
•Controller may support >1 device
•Each transfer uses bus once
•DMA to memory
•CPU is suspended once
DMA Configurations (3)
•Separate I/O Bus
•Bus supports all DMA enabled
devices
•Each transfer uses bus once
•DMA to memory
•CPU is suspended once
Computer architecture input output organization

Weitere ähnliche Inhalte

Was ist angesagt?

Timing and control
Timing and controlTiming and control
Timing and controlchauhankapil
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operationNikhil Pandit
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 
Direct memory access
Direct memory accessDirect memory access
Direct memory accessshubham kuwar
 
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
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInteX Research Lab
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit DesignVinit Raut
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 

Was ist angesagt? (20)

Input output interface
Input output interfaceInput output interface
Input output interface
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
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
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
DMA operation
DMA operationDMA operation
DMA operation
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
Functional units
Functional unitsFunctional units
Functional units
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 

Ähnlich wie Computer architecture input output organization

Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer ArchitectureMaruf Abdullah (Rion)
 
chapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfchapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfSangitaBose2
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptxSherinRappai
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentationMuhammad Hamza
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization faria_khan
 
IO and file systems
IO and file systems IO and file systems
IO and file systems EktaVaswani2
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Swathi Veeradhi
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organizationchidabdu
 
IOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdfIOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdfaptinstallpython3
 
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
 

Ähnlich wie Computer architecture input output organization (20)

IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Input output module
Input output moduleInput output module
Input output module
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
chapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfchapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdf
 
comporgppt.pptx
comporgppt.pptxcomporgppt.pptx
comporgppt.pptx
 
Input_Output_Organization.pptx
Input_Output_Organization.pptxInput_Output_Organization.pptx
Input_Output_Organization.pptx
 
Input-Output Modules
Input-Output ModulesInput-Output Modules
Input-Output Modules
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentation
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
 
Unit 6
Unit 6Unit 6
Unit 6
 
IO and file systems
IO and file systems IO and file systems
IO and file systems
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
IOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdfIOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdf
 
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
 

Mehr von Mazin Alwaaly

Pattern recognition voice biometrics
Pattern recognition voice biometricsPattern recognition voice biometrics
Pattern recognition voice biometricsMazin Alwaaly
 
Pattern recognition palm print authentication system
Pattern recognition palm print authentication systemPattern recognition palm print authentication system
Pattern recognition palm print authentication systemMazin Alwaaly
 
Pattern recognition on line signature
Pattern recognition on line signaturePattern recognition on line signature
Pattern recognition on line signatureMazin Alwaaly
 
Pattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earPattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earMazin Alwaaly
 
Pattern recognition IRIS recognition
Pattern recognition IRIS recognitionPattern recognition IRIS recognition
Pattern recognition IRIS recognitionMazin Alwaaly
 
Pattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionPattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionMazin Alwaaly
 
Pattern recognition Hand Geometry
Pattern recognition Hand GeometryPattern recognition Hand Geometry
Pattern recognition Hand GeometryMazin Alwaaly
 
Pattern recognition forensic dental identification
Pattern recognition forensic dental identificationPattern recognition forensic dental identification
Pattern recognition forensic dental identificationMazin Alwaaly
 
Pattern recognition fingerprints
Pattern recognition fingerprintsPattern recognition fingerprints
Pattern recognition fingerprintsMazin Alwaaly
 
Pattern recognition facial recognition
Pattern recognition facial recognitionPattern recognition facial recognition
Pattern recognition facial recognitionMazin Alwaaly
 
Pattern recognition ear as a biometric
Pattern recognition ear as a biometricPattern recognition ear as a biometric
Pattern recognition ear as a biometricMazin Alwaaly
 
Pattern recognition 3d face recognition
Pattern recognition 3d face recognitionPattern recognition 3d face recognition
Pattern recognition 3d face recognitionMazin Alwaaly
 
Multimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMultimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMazin Alwaaly
 
Multimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMultimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMazin Alwaaly
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMazin Alwaaly
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithmsMazin Alwaaly
 
Multimedia lossless compression algorithms
Multimedia lossless compression algorithmsMultimedia lossless compression algorithms
Multimedia lossless compression algorithmsMazin Alwaaly
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniquesMazin Alwaaly
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standardsMazin Alwaaly
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in videoMazin Alwaaly
 

Mehr von Mazin Alwaaly (20)

Pattern recognition voice biometrics
Pattern recognition voice biometricsPattern recognition voice biometrics
Pattern recognition voice biometrics
 
Pattern recognition palm print authentication system
Pattern recognition palm print authentication systemPattern recognition palm print authentication system
Pattern recognition palm print authentication system
 
Pattern recognition on line signature
Pattern recognition on line signaturePattern recognition on line signature
Pattern recognition on line signature
 
Pattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earPattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and ear
 
Pattern recognition IRIS recognition
Pattern recognition IRIS recognitionPattern recognition IRIS recognition
Pattern recognition IRIS recognition
 
Pattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionPattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognition
 
Pattern recognition Hand Geometry
Pattern recognition Hand GeometryPattern recognition Hand Geometry
Pattern recognition Hand Geometry
 
Pattern recognition forensic dental identification
Pattern recognition forensic dental identificationPattern recognition forensic dental identification
Pattern recognition forensic dental identification
 
Pattern recognition fingerprints
Pattern recognition fingerprintsPattern recognition fingerprints
Pattern recognition fingerprints
 
Pattern recognition facial recognition
Pattern recognition facial recognitionPattern recognition facial recognition
Pattern recognition facial recognition
 
Pattern recognition ear as a biometric
Pattern recognition ear as a biometricPattern recognition ear as a biometric
Pattern recognition ear as a biometric
 
Pattern recognition 3d face recognition
Pattern recognition 3d face recognitionPattern recognition 3d face recognition
Pattern recognition 3d face recognition
 
Multimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMultimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networks
 
Multimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMultimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communications
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital libraries
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithms
 
Multimedia lossless compression algorithms
Multimedia lossless compression algorithmsMultimedia lossless compression algorithms
Multimedia lossless compression algorithms
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in video
 

Kürzlich hochgeladen

GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPirithiRaju
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsSérgio Sacani
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfrohankumarsinghrore1
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxUmerFayaz5
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...Lokesh Kothari
 
Creating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening DesignsCreating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening DesignsNurulAfiqah307317
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksSérgio Sacani
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.Nitya salvi
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...chandars293
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 

Kürzlich hochgeladen (20)

GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
 
Creating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening DesignsCreating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening Designs
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 

Computer architecture input output organization

  • 2. Contents  I/O Organization  Peripheral Devices  Input-Output Interface  Input / Output System  Programmed I/O  Direct Memory Access (DMA)  Interrupt
  • 3. I/O Organization The Input / output organization of computer depends upon the size of computer and the peripherals connected to it. The I/O Subsystem of the computer, provides an efficient mode of communication between the central system and the outside environment.
  • 4. Peripheral Devices An external device connected to an I/O module Provide a means of exchanging data between the external device environment and the computer. Attach to the computer by a link to an I/O module The link is used to exchange control, status, and data between the I/O module and the external device.
  • 5. Peripheral Devices The most common input output devices are: i) Monitor ii) Keyboard iii) Mouse iv) Printer v) Magnetic tapes The devices that are under the direct control of the computer are said to be connected online.
  • 6. Peripheral Devices Three categories of external device: Human readable Suitable for communicating with the computer user Video display terminals (VDTs), printers. Machine readable Suitable for communicating with equipment Magnetic disk and tape systems, sensors and actuators. Communication Suitable for communicating with remote devices such as a terminal, a machine readable device, or another computer.
  • 7.
  • 8. Input - Output Interface Input Output Interface provides a method for transferring information between internal storage (such as memory and CPU registers) and external I/O devices. Peripherals connected to a computer need special communication links for interfacing them with the central processing unit.
  • 9. Input - Output Interface The purpose of communication link is to resolve the differences that exist between the central computer and each peripheral.
  • 10. The Major Differences are:- 1. Peripherals are electromechanically and electromagnetic devices and their manner of operation of the CPU and memory, which are electronic devices. Therefore, a conversion of signal values may be needed. 2. The data transfer rate of peripherals is usually slower than the transfer rate of CPU and consequently, a synchronization mechanism may be needed.
  • 11. The Major Differences are:- 3. Data codes and formats in the peripherals differ from the word format in the CPU and memory. Peripherals- Byte, Block, … CPU or memory- word. 4. The operating modes of peripherals are different from each other and must be controlled so as not to disturb the operation of other peripherals connected to the CPU.
  • 12. Input - Output Interface To Resolve these differences, computer systems include special hardware components between the CPU and Peripherals to supervises and synchronizes all input and out transfers. These components are called Interface Units because they interface between the processor bus and the peripheral devices.
  • 13. i/o module function  Control and timing: cordinates the flow of traffic between internal resources and external devices.  Processor communication: involves command decoding data status reporting address recognition.  Error detection: detect and reports transmission errors.  Data buffering: perform the needed buffeing operation to balance device and memory speeds.  Device communication: involves commands, status information and data.
  • 15. I/O BUS and Interface Module It defines the typical link between the processor and several peripherals. The I/O Bus consists of data lines, address lines and control lines.
  • 16. Processor Interface Interface Interface Keyboard and display terminal Printer Magnetic disk Data line Address line Control line Connection of I/O bus to input-output devices I/O BUS and Interface Module
  • 17. I/O Commands There are four types of I/O commands that an I/O module may receive when it is addressed by a processor: Control - used to activate a peripheral and tell it what to do. Test - used to test various status conditions associated with an I/O module and its peripherals. Read - causes the I/O module to obtain an item of data from the peripheral and place it in an internal buffer. Write - causes the I/O module to take an item of data from the data bus and subsequently transmit that data item to the peripheral.
  • 18. Input / Output System There are two methods in which the Processor can address the input/output devices: In the First arrangement, I/O devices are assigned particular addresses, isolated from the address space assigned to the memory . The execution of an input instruction at an input device address will cause the character stored in the input register of that device to be transferred to a specific register in the CPU. Similarly, the execution of an output instruction . This arrangement, called ”Shared I/O’’, in the case, the address and data lines from the CPU can be shared between the memory and I/O devices. A separate control line will have to be used. This is because of the need for executing input and output instruction.
  • 19.
  • 20. Input/ Output System The main Advantage of the Shared I/O arrangement is the Separation between the memory address space and that of the I/O devices. Its main Disadvantage is the need to have special input and output instruction in the processor instruction set.
  • 21. processor Memory Address Bus Data Bus Memory Control Bus Figure( Memory-mapped I/O arrangement ) Output Device (Graphic Display) Input Device (Keyboard) Input/ Output System
  • 22. The Second, possible I/O arrangement is deal with input and output registers as if they are regular memory locations. For example, Read Device 6 is equivalent to performing an input operation from the input register in Device #6. Similarly, a write operation. This arrangement is called Memory – Mapped I/O. The main advantage of the memory-mapped I/O is the use of the read and write instructions of the processor to perform the input and output operations, respectively. It eliminates the need for introducing special I/O instructions. The main Disadvantage of the memory-mapped I/O is the need to reserve a certain part of the memory address space for addressing I/O devices, that is, a reduction in the available memory address space.
  • 23. I/O Mapping Summary Memory mapped I/O Devices and memory share an address space. `I/O looks just like memory read/write No special commands for I/O Large selection of memory access commands available Isolated I/O Separate address spaces Need I/O or memory select lines Special commands for I/O Limited set
  • 24. Input Output Techniques Programmed I/O Programmed i/o refers to data transfers initiated by a (cpu) under driver software control to access registers or memory on a device. The cpu issues a command then waits for i/o operations to be complete. As the cpu is faster than the i/o module, the problem with programmed i/o is that the cpu has to wait along time for the i/o module of concern to be ready for either reception or transmission of data .the cpu, while waiting must repeatedly check the status of the i/o module, and this process is known as polling . As a result , the level of the performance of the entire system is severely degraded. Programmed i/o basically works in these ways :
  • 25. Programmed I/O - detail •CPU requests I/O operation. •I/O module performs operation. •I/O module sets status bits. •CPU checks status bits periodically. •I/O module does not inform CPU directly. •I/O module does not interrupt CPU. •CPU may wait or come back later.
  • 26. I/O Commands •CPU issues address Identifies module (& device if >1 per module) •CPU issues command Control - telling module what to do e.g. spin up disk Test - check status e.g. power? Error? Read/Write Module transfers data via buffer from/to device
  • 27. Interrupt Driven I/O The CPU issues commands to the i/o module then proceeds with its normal work until interrupted by i/o device on completion of its work. For input, the device interrupts the cpu when new data has arrived and is ready to be arrived by the system processor . The actual actions to perform depend on whether the device uses i/o ports, memory mapping. For output, the deice delivers an interrupt either when it is ready to accept new data or to acknowledge asuccessful data transfer. Memory mapped and DMA- capable device usualy generate interrupt to tell the system they are done with the buffer . although interrupt relieves the cpu of having to waite for the device, but it is still inefficient in data transfer of large amount because the cpu has to transfer the data word by word between i/o module and memory . Below are the basic operations of interrupt. .
  • 28. Interrupt Driven I/O Basic Operation •CPU issues read command. •I/O module gets data from peripheral whilst CPU does other work. •I/O module interrupts CPU. •CPU requests data. •I/O module transfers data.
  • 29. Types of Interrupts Hardware Interrupts: If the signal for the processor is from external device or hardware is called hardware interrupts. Example: from keyboard we will press the key to do some action this pressing of key in keyboard will generate a signal which is given to the processor to do action, such interrupts are called hardware interrupts. Hardware interrupts can be classified into two types they are: •Maskable Interrupt: The hardware interrupts which can be delayed when a much highest priority interrupt has occurred to the processor. •Non Maskable Interrupt: The hardware which cannot be delayed and should process by the processor immediately.
  • 30. Software Interrupts: Software interrupt can also divided in :to two types. They are •Normal Interrupts: the interrupts which are caused by the software instructions are called software instructions. •Exception: unplanned interrupts while executing a program is called Exception. For example: while executing a program if we got a value which should be divided by zero is called a exception.
  • 31. Design Issues How do you identify the module issuing the interrupt? How do you deal with multiple interrupts? i.e. an interrupt handler being interrupted Identifying Interrupting Module (1) Different line for each module. PC Limits number of devices. Software poll. CPU asks each module in turn Slow
  • 32. Identifying Interrupting Module (2) •Daisy Chain or Hardware poll -Interrupt Acknowledge sent down a chain -Module responsible places vector on bus -CPU uses vector to identify handler routine •Bus Master Module must claim the bus before it can raise interrupt e.g. PCI & SCSI
  • 33.
  • 34. Direct Memory Access (DMA) Direct Memory Access (DMA) means CPU grants I/O module authority to read from or write to memory without involvement DMA module controls exchange of data between main memory and the I/O device. Because of DMA device can transfer data directly to and from memory, rather than using the CPU as an intermediary, and can thus relieve congestion on the bus. CPU is only involved at the beginning and end of the transfer and interrupted only after entire block has been transferred . Direct Memory Access needs a special hardware called DMA controller (DMAC) that manages the data transfers and arbitrates access to the system bus. The controllers are programmed with source and destination pointers (where to read/write the data), counters to track the number of transferred bytes, and settings, which includes I/O and memory types, interrupts and states for the CPU cycles.DMA increases system concurrency by allowing the CPU to perform tasks while the DMA system transfers data via the system and memory busses. Hardware design is complicated because the DMA controller must be integrated into the system, and the system must allow the DMA controller to be a bus master. Cycle stealing may also be necessary to allow the CPU and DMA controller to share use of the memory bus.
  • 35. DMA controller DMA controller has an address register, data count register, control logic. address register :contaains an address that specifies the memory location of the data to be transferred. The DMA controller automatically increment the address register after each word transfere, so the transfere will be from the next memory location. data count register:holds the number of words to be transfere ,the word count is decremented by one after each word transfere . control logic:specifies the transfere mode ( number of DMA operation they spport).
  • 36. DMA transfer types: -Burst mode the DMA controller keeps control of the bus until all the data has been transferred to (from ) memory from (to) the peripheral device. This mode of transfere is nneeded for fast devices where data transfere cannot be stopped until the entir transfer is done .
  • 37. - Single – cycle mode the DMA controller releasing the bus after each transfer of one data word . This minimizes the amount of time that the DMA controller keeps the CPU from controlling the bus , but it requires that the bus request / acknowledge sequence be performed for every single transfer. the Single – cycle mode is preferred if the peripheral devices can buffer very large amounts of data , causing the DMA controller to tie up the bus for an excessive amount of time.
  • 39. DMA Operation CPU carries on with other work. CPU tells DMA controller. Read/Write. Device address. Starting address of memory block for data. Amount of data to be transferred. DMA controller deals with transfer. DMA controller sends interrupt when finished.
  • 40. DMA Configurations (1) •Single Bus, Detached DMA controller •Each transfer uses bus twice •I/O to DMA then DMA to memory •CPU is suspended twice
  • 41. DMA Configurations (2) •Single Bus, Integrated DMA controller •Controller may support >1 device •Each transfer uses bus once •DMA to memory •CPU is suspended once
  • 42. DMA Configurations (3) •Separate I/O Bus •Bus supports all DMA enabled devices •Each transfer uses bus once •DMA to memory •CPU is suspended once