SlideShare a Scribd company logo
1 of 40
Computer Organization and Architecture
Presented By:
Vikram Patel
Topics
 Input Output (I/O) ports
 Input Output Mapping
 Memory map techniques
 Interrupt driven I/O
 DMA based Input Output
 Input Output Processor
Input-Output ports ( I/O Ports)
 Input : Information or data to the computer
 Output : Information or data from computer
 Computers are based on the fundamental idea that every input results in an
output.
What is Input and Output ?
What are Input-Output Ports?
 They are what connect input and output devices (Keyboard, Mouse,
Printer, Scanner, Monitor etc.) to the computer.
Types of Input-Output (I/O) ports
 Serial Port
 PS/2
 Parallel Printer Port
 LAN Port
 Audio Port
 Universal serial Bus (USB)
Input Output Mapping
Input Output Mapping
 Memory Mapped I/O
 Isolated I/O
There are two types of Input Output Mapping
 Memory & I/O Share the entire address range of processor.
 Any machine instruction that can access memory can be used to
transfer data to or from an I/O device.
 Memory control signals, used to control read & write I/O operations.
Memory Mapped I/O
 Processor Provide separate Address Range for Memory & I/O.
 Input Output control signals are used to control read and write
input output operations.
Isolated I/O
Memory Map Techniques
Memory Map Techniques
There are 3 types of Memory map Techniques
 Direct Mapping
 Fully Associative Mapping
 Set – Associative Mapping
 Simplest way of mapping.
 Main memory is divided in blocks.
 Maps each block of main memory into only one possible cache line.
Direct Mapping
Direct Mapping
Fully Associative Mapping
 In associative cache mapping, the data from any location in
RAM can be stored in any location in cache.
 When the processor wants an address, all tag fields in the
cache as checked to determine if the data is already in the
cache.
 Each tag line requires circuitry to compare the desired
address with the tag field.
 All fields are checked in parallel.
Fully Associative Mapping
 Set associative mapping is a mixture of direct and associative mapping.
 The cache lines are grouped into sets.
 The number of lines in a set can vary from 2 to 16.
 A portion of the address is used to specify which set will hold an
address.
 The data can be stored in any of the lines in the set.
Set-Associative Mapping
Set Associative Mapping
V-Set Associative
Mapping
Set Associative Mapping
K-Set Associative
Mapping
Interrupt Driven I/O
What is Interrupt?
 Event that disrupts the normal execution of a program and causes the
execution of special instructions.
Interrupt Driven I/O
 In Interrupt Driven I/O approach, the processor issues an I/O command
to a module and then go on to do some other useful work.
 The I/O module with then interrupt the processor to request service
when it is ready to exchange data with the processor. The processor
then executes resumes its former processing.
Simple Interrupt Processing
Advantages of Interrupt Driven I/O
 I/O is important aspect for communicating.
 Interrupt adapts to the processor speed and I/O device, automatically.
Drawbacks of Interrupt Driven I/O
 The I/O transfer rate is limited by the speed with which the processor
can test and service a device.
 Needs continues intervention of processor, so it consumes time.
DMA Based I/O
What is DMA?
 DMA – Direct Memory Access
 In this method the input and output devices read/write information from
the main memory without interference of the CPU through the system
bus.
Block Diagram of DMA
DMA Operation
 The processor issues a command to DMA module
 Read or write
 I/O device address using data lines
 Starting memory address using data lines – stored in address
register
 Number of words to be transferred using data lines – stored in
data register
DMA Operation (Cont.)
 The processor then continues with other work.
 DMA module transfers the entire block of data – one word at a time –
directly to or from memory without going through the processor.
 DMA module sends an interrupt to the processor when complete.
Configuration of DMA
Single-bus, Detached DMA
Single-bus, Integrated DMA
I/O Bus
Advantages of DMA
 Fast transfer of data.
 CPU and DMA run concurrently under cache mode.
 DMA can trigger an interrupt, which frees the CPU so the speed
increases.
Input Output Channels and
Processors
Input Output Channels and Processors
 I/O processor is an extension of the concept of DMA. The I/O
processor can execute specialized I/O program residing in the memory
without intervention of the CPU.
 CPU only needs to specify a sequence of I/O activity to I/O processor
 An advanced I/O processor can have its own memory, enabling a large
set of I/O devices to be controlled without much involvement from the
CPU.
Types of I/O channels
 Controls multiple high-speed devices
 Dedicated to the transfer of data with one of the devices
 Each device handled by a controller or I/O module
 I/O channel controls these I/O controllers
 1.) Selector Channel
Types of I/O channels
 2.) Multiplexor Channel
 Can handle multiple devices at the same time
 Byte multiplexor – used for low-speed devices
 Block multiplexor – interleaves blocks of data from several devices.
Advantages I/O channels
 Makes transfers less visible to CPU, spreads the complexity
 Can Improve speed
 Can improve device organization flexibility
Conclusion
 Input output devices gets connected to computer through I/O Ports.
 There are Direct mapping, Fully Associative and Set-Associative
method techniques for mapping the memory.
 There are various method of transferring data from Input output
devices to the memory or memory to Input Output devices.
Like : Interrupt Driven I/O, DMA Based I/O, Input Output
Processors.
 Book : Computer Organization and Architecture by William Stallings
 Images : Google Images
Reference
Any Queries?
Thank You

More Related Content

What's hot

Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
chidabdu
 
Interrupt
InterruptInterrupt
Interrupt
Joy Sarker
 

What's hot (20)

Input output interface
Input output interfaceInput output interface
Input output interface
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Input output organisation
Input output organisationInput output organisation
Input output organisation
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Modes of transfer
Modes of transferModes of transfer
Modes of transfer
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Unit 4-input-output organization
Unit 4-input-output organizationUnit 4-input-output organization
Unit 4-input-output organization
 
Control unit
Control unitControl unit
Control unit
 
pipelining
pipeliningpipelining
pipelining
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
 
Interrupt
InterruptInterrupt
Interrupt
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Processor organization & register organization
Processor organization & register organizationProcessor organization & register organization
Processor organization & register organization
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 

Similar to Input output in computer Orgranization and architecture

Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
faria_khan
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
info998421
 

Similar to Input output in computer Orgranization and architecture (20)

IO and file systems
IO and file systems IO and file systems
IO and file systems
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
CH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdfCH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdf
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Dma
DmaDma
Dma
 
Unit 5
Unit 5Unit 5
Unit 5
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware
 
Co notes
Co notesCo notes
Co notes
 
IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 
I/O Channel IBM 370
I/O Channel IBM 370I/O Channel IBM 370
I/O Channel IBM 370
 
CO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxCO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptx
 
inputoutput_organization__Morrismano.ppt
inputoutput_organization__Morrismano.pptinputoutput_organization__Morrismano.ppt
inputoutput_organization__Morrismano.ppt
 
I/O Management
I/O ManagementI/O Management
I/O Management
 
Cpi unit 01
Cpi unit 01Cpi unit 01
Cpi unit 01
 
IO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREIO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTURE
 
Itc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interfaceItc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interface
 
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
 
Unit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.pptUnit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.ppt
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Input output in computer Orgranization and architecture

  • 1. Computer Organization and Architecture Presented By: Vikram Patel
  • 2. Topics  Input Output (I/O) ports  Input Output Mapping  Memory map techniques  Interrupt driven I/O  DMA based Input Output  Input Output Processor
  • 3. Input-Output ports ( I/O Ports)  Input : Information or data to the computer  Output : Information or data from computer  Computers are based on the fundamental idea that every input results in an output. What is Input and Output ? What are Input-Output Ports?  They are what connect input and output devices (Keyboard, Mouse, Printer, Scanner, Monitor etc.) to the computer.
  • 4. Types of Input-Output (I/O) ports  Serial Port  PS/2  Parallel Printer Port  LAN Port  Audio Port  Universal serial Bus (USB)
  • 5.
  • 7. Input Output Mapping  Memory Mapped I/O  Isolated I/O There are two types of Input Output Mapping
  • 8.  Memory & I/O Share the entire address range of processor.  Any machine instruction that can access memory can be used to transfer data to or from an I/O device.  Memory control signals, used to control read & write I/O operations. Memory Mapped I/O
  • 9.  Processor Provide separate Address Range for Memory & I/O.  Input Output control signals are used to control read and write input output operations. Isolated I/O
  • 11. Memory Map Techniques There are 3 types of Memory map Techniques  Direct Mapping  Fully Associative Mapping  Set – Associative Mapping
  • 12.  Simplest way of mapping.  Main memory is divided in blocks.  Maps each block of main memory into only one possible cache line. Direct Mapping
  • 14. Fully Associative Mapping  In associative cache mapping, the data from any location in RAM can be stored in any location in cache.  When the processor wants an address, all tag fields in the cache as checked to determine if the data is already in the cache.  Each tag line requires circuitry to compare the desired address with the tag field.  All fields are checked in parallel.
  • 16.  Set associative mapping is a mixture of direct and associative mapping.  The cache lines are grouped into sets.  The number of lines in a set can vary from 2 to 16.  A portion of the address is used to specify which set will hold an address.  The data can be stored in any of the lines in the set. Set-Associative Mapping
  • 17. Set Associative Mapping V-Set Associative Mapping
  • 18. Set Associative Mapping K-Set Associative Mapping
  • 20. What is Interrupt?  Event that disrupts the normal execution of a program and causes the execution of special instructions.
  • 21. Interrupt Driven I/O  In Interrupt Driven I/O approach, the processor issues an I/O command to a module and then go on to do some other useful work.  The I/O module with then interrupt the processor to request service when it is ready to exchange data with the processor. The processor then executes resumes its former processing.
  • 23. Advantages of Interrupt Driven I/O  I/O is important aspect for communicating.  Interrupt adapts to the processor speed and I/O device, automatically.
  • 24. Drawbacks of Interrupt Driven I/O  The I/O transfer rate is limited by the speed with which the processor can test and service a device.  Needs continues intervention of processor, so it consumes time.
  • 26. What is DMA?  DMA – Direct Memory Access  In this method the input and output devices read/write information from the main memory without interference of the CPU through the system bus.
  • 28. DMA Operation  The processor issues a command to DMA module  Read or write  I/O device address using data lines  Starting memory address using data lines – stored in address register  Number of words to be transferred using data lines – stored in data register
  • 29. DMA Operation (Cont.)  The processor then continues with other work.  DMA module transfers the entire block of data – one word at a time – directly to or from memory without going through the processor.  DMA module sends an interrupt to the processor when complete.
  • 30. Configuration of DMA Single-bus, Detached DMA Single-bus, Integrated DMA I/O Bus
  • 31. Advantages of DMA  Fast transfer of data.  CPU and DMA run concurrently under cache mode.  DMA can trigger an interrupt, which frees the CPU so the speed increases.
  • 32. Input Output Channels and Processors
  • 33. Input Output Channels and Processors  I/O processor is an extension of the concept of DMA. The I/O processor can execute specialized I/O program residing in the memory without intervention of the CPU.  CPU only needs to specify a sequence of I/O activity to I/O processor  An advanced I/O processor can have its own memory, enabling a large set of I/O devices to be controlled without much involvement from the CPU.
  • 34. Types of I/O channels  Controls multiple high-speed devices  Dedicated to the transfer of data with one of the devices  Each device handled by a controller or I/O module  I/O channel controls these I/O controllers  1.) Selector Channel
  • 35. Types of I/O channels  2.) Multiplexor Channel  Can handle multiple devices at the same time  Byte multiplexor – used for low-speed devices  Block multiplexor – interleaves blocks of data from several devices.
  • 36. Advantages I/O channels  Makes transfers less visible to CPU, spreads the complexity  Can Improve speed  Can improve device organization flexibility
  • 37. Conclusion  Input output devices gets connected to computer through I/O Ports.  There are Direct mapping, Fully Associative and Set-Associative method techniques for mapping the memory.  There are various method of transferring data from Input output devices to the memory or memory to Input Output devices. Like : Interrupt Driven I/O, DMA Based I/O, Input Output Processors.
  • 38.  Book : Computer Organization and Architecture by William Stallings  Images : Google Images Reference