§4.4 Input and Output Devices

Slides:



Advertisements
Similar presentations
So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
Advertisements

Provide data pathways that connect various system components.
Computer Buses Ref: Burd, Chp – 220 Englander, Chp 7 p
IT253: Computer Organization
§4.1 The von Neumann Architecture Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo,
Computer Systems Nat 4/5 Computing Science Computer Structure:
HARDWARE Rashedul Hasan..
Computer Organization, Bus Structure
§5.5 Device Class Characteristics Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo,
I/O Organization popo.
MTE 241 Introduction to Computer Structures and Real-time Systems
Device Management Ankur Saggar Nitin Golait Jason Foos Adam Estabrook.
1 Operating Systems Input/Output Management. 2 What is the I/O System A collection of devices that different sub- systems of a computer use to communicate.
Test on Input, Output, Processing, & Storage Devices
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
§12.4 Static Paging Algorithms
ECE 250 Algorithms and Data Structures Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo,
INPUT-OUTPUT ORGANIZATION
Chapter 5 The System Unit.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Computer Basics 1 Computer Basic 1 includes two lessons:
Intro Test 2 – Chapters 3,4 & Word Sample Questions SPRING 2005.
IT Systems In and Out EN230-1 Justin Champion C208 –
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
COMPUTER DEVICES Input Devices Output Devices Storage Devices
Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.
Word Processing, Web Browsing, File Access, etc. Windows Operating System (Kernel) Window (GUI) Platform Dependent Code Virtual Memory “Swap” Block Data.
Chapter 4 Section 3.
History Of Computers By: Jazmin Holly 5Period. Connection Of Computers The Computer has 8 Connection to Itself To Function Correctly 1)Power Adapter In.
Motherboard & System Unit. System Unit  The box in which the motherboard and other components of the computer is stored.  On a desktop computer it’s.
Input, Output, Processing and Storage
INPUT-OUTPUT ORGANIZATION
Computer Insides and Out Computer Basics 1.1. Basic Personal Computer System  A computer system consists of hardware and software components.  Hardware.
Computer Processing of Data
Introduction to Computing: Lecture 4
NETW 3005 I/O Systems. Reading For this lecture, you should have read Chapter 13 (Sections 1-4, 7). NETW3005 (Operating Systems) Lecture 10 - I/O Systems2.
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Computing and the Web Computer Hardware Components.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
I T Essentials I Chapter 1 JEOPARDY HardwareConnector/CablesMemoryAcronymsPotpourri
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Organisasi Sistem Komputer Materi VIII (Input Output)
Computer Basics Common Components
12/8/20151 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Computer Hardware. The Desk Top Computer A PC is a general-purpose information processing device. It can take data from a person (through the keyboard.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
Five Components of Computers Input Output Memory Control Datapath Processor.
C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.
Digital Literacy: Computer Basics
Direct Memory Access (DMA) Department of Computer Engineering, M.S.P.V.L. Polytechnic College, Pavoorchatram. A Presentation On.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Computer Parts There are many parts that work together to make a computer work.
Computer Basics Just How Does a Computer Work?
Computers Inside & Out. How have computers affected your life? How has technology affected your life?
COMPUTER COMPONENTS Ms Jennifer Computer Components.
COMPUTER FUNDAMENTALS David Samuel bhatti
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Operating Systems (CS 340 D)
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
C_ITCO011/C_ITCO111 LECTURER: E.DONDO
CS703 - Advanced Operating Systems
- CHAPTER 1 – Basic Concepts of Information Technology
Presentation transcript:

§4.4 Input and Output Devices Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo, Ontario, Canada ece.uwaterloo.ca dwharder@alumni.uwaterloo.ca © 2012 by Douglas Wilhelm Harder. Some rights reserved. Based in part on Gary Nutt, Operating Systems, 3rd ed.

Outline This topic looks at input and output devices I/O Devices Categories Device controllers Direct Memory Access Memory-mapped I/O

I/O Devices I/O devices communicate with a CPU through the system bus Input devices signal the CPU that it is ready to transmit data The CPU retrieves and deals with that data Often the data is from registers into main memory Similarly, the CPU can signal that it has data ready to transmit to output devices Devices retrieve the data Again, often the data that is being transmitted had to be copied from main memory into registers before it was sent on

I/O Devices Communication serial and parallel ports network cards (including wireless) infrared transmitter/receivers Input keyboard mouse touch-sensitive screen microphone Output terminal graphical speaker printer User: Bilby Storage hard drives USB drives CD ROM

I/O Devices Internal devices are connected directly to Communications connections usually pass through some port: Ethernet USB Firewire (IEEE 1394) and thunderbolt VGA and DVI SCSI Parallel, PS/2, Serial and TRS

I/O Devices I/O Devices More and more common these days is to see devices with a network connection (wireless or landline) Significantly greater costs Significantly greater flexibility It’s useful that we’re moving from IPv4 to IPv6 soon 232 IP addresses aren’t enough IPv6 allows for 2128 IP addresses Again, the cost of quadrupling the IP address size is insignificant to the increase in hardware

I/O Devices I/O Devices Each device has a controller that connects it to the CPU via the system bus Each controller provides the standard interface Most data buses today are either 32-bit or 64-bit This means four or eight bytes can be loaded or read at once The size of the data bus describes the length of a word

I/O Devices Device Controllers Applications communicate through a common interface presented by the device driver The driver communicates with a device controller The controller is doubly hardware dependent

I/O Devices Device Controllers Most device controllers will have hardware implementations for basic functionality The controller must interface with the interface between devices Examples: PSI Express

Device Controllers Each controller will have registers including: I/O Devices Device Controllers Each controller will have registers including: A command register What the device should do next Data registers Information passed to or copied from the device Status register The current state of the device

I/O Devices Device Controllers Often, two flags within the command register are often busy and done When both are 0 (false), data can be copied to the registers and a command can be sent to the device A new command sets the busy flag to 1: the device now either reads from or writes to the data registers When the command is complete, the done flag is set to 1 and the busy flag is reset to 0 If both are 1, the state is intermediate

I/O Devices Device Controllers If an unrecoverable error occurs during the command, an error code will be copied to a different part of the status register

Device Controllers Another common feature is a buffer I/O Devices Device Controllers Another common feature is a buffer The CPU can continue reading data from an internal buffer while the controller is busy with the next command

I/O Devices Direct Memory Access Another common issue is copying data between a device and main memory By default, all data must be copied through the CPU This can be exceptionally expensive

I/O Devices Direct Memory Access Direct Memory Access (DMA) allows for direct transfer between a device and main memory The device driver provides an address in main memory The DMA controller facilitates the copy data to or from starting at this memory location The CPU can now work in parallel so long as the system bus is not required

I/O Devices Memory-Mapped I/O Instructions for communicating with devices could be through CPU instructions Copy status register to the CPU data register test CPU_register, device_address Send commands to the command register input device_address output device_address Copy values between data registers copy_in CPU_register, device_address, controller_register copy_out CPU_register, device_address, controller_register

I/O Devices Memory-Mapped I/O An alternate model is to explicitly associate specific memory locations with each device Each register is associated with a memory location Writes to those memory locations copies to the data to the corresponding Changes to registers are copied to main memory Benefits: This allows a smaller instruction set Address registers can address device registers

Memory-Mapped I/O Consider the original MS DOS I/O Devices Memory-Mapped I/O Consider the original MS DOS It dedicated the top 384 KiB of memory available to an 8088 to system memory including memory-mapped I/O In this case, the mapping is permanent

Summary This topic looks at input and output devices I/O Devices Input, output, storage, communication Device controllers Direct Memory Access Memory-mapped I/O