CS1101: Lecture 21. Organization: Input/Output. Lecture Outline. Buses. A simple personal computer. Buses

Similar documents
Buses, Video, and Upgrades

COMPUTER SYSTEMS ORGANIZATION

Computer Systems O rganization Organization Chapter 2 1

Chapter 8: Input and Output. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V.

Components of a personal computer

Introduction to Computer Graphics (CS602) Lecture No 03 Graphics Systems

Buses, Video, and Upgrades

What is the typical configuration of a computer sold today? 1-1

PC I/O. May 7, Howard Huang 1

Introduction. Computer System Organization. Languages, Levels, Virtual Machines. A multilevel machine. Sarjana Magister Program

Module 1. Introduction. Version 2 EE IIT, Kharagpur 1

Identify Components of the. Motherboard

Input and output Systems. Peter Rounce - room G06

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

Introduction To Computer Hardware. Hafijur Rahman

Homeschool Enrichment. The System Unit: Processing & Memory

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

Chapter Three. Hardware Basics: Peripherals

COMPUTER ORGANIZATION & SKILLS

STANDARD I/O INTERFACES

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Organisasi Sistem Komputer

Question. Announcement. Computer Hardware. Definition of a Computer. Essential Parts. The Box (CPU) input/output device that processes information

1 PC Hardware Basics Microprocessors (A) PC Hardware Basics Fal 2004 Hadassah College Dr. Martin Land

PC Connections. A typical computer connects to the world around it in three different ways: Input/output devices Ports Networking.

Review Questions on Computer Basics

Module 6: INPUT - OUTPUT (I/O)

INTRODUCTION TO COMPUTERS

INFS 214: Introduction to Computing

CS1101: Lecture 34. The ISA Level. Instruction Sets. Lecture Outline. Introduction. Data Movement Instructions. Instruction Types

Computer Organization ECE514. Chapter 5 Input/Output (9hrs)

Chapter 2 Lecture 5 Computer Systems Organization

7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.

Input/Output. Display Keyboard Mouse Removable storage

Digital System Design


Computer Architecture

Inside the Computer System

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals

About the Presentations

CS 101, Mock Computer Architecture

Chapter 02: Computer Organization Functional units and components in a computer organization Part 3 Bus Structures

Experiment #0. PC Hardware and Operating Systems

Motherboard BIOS. Fig: 1 What you see (or something similar) if you turn the PC manufacturer's logo off

This page intentionally left blank

Section I Section Real Time Systems. Processes. 1.6 Input/Output Management. (Textbook: A. S. Tanenbaum Modern OS - ch. 5)

Chapter 9: Other Peripherals

Chapter 4 The Components of the System Unit

QUIZ Ch.6. The EAT for a two-level memory is given by:

Computers Are Your Future

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13

OPERATING SYSTEMS CS136

CS1101: Lecture 18. Computer Systems Organization: Input/Output. Lecture Outline. Mice. Dot-Matrix Printers. Mice

Arithmetic/logic Unit (ALU)

Introduction to the Personal Computer

Lectures More I/O

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems

Chapter 1. Computer Fundamentals-I

Technology in Action

Lecture 23. Finish-up buses Storage

MICROPROCESSOR TECHNOLOGY

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate.

Chapter 1: Introduction to the Personal Computer

Babbage Analytical Machine

PARTS OF THE COMPUTER. 2nd ESO IES CAP DE LLEVANT

Unit 1. Chapter 3 Top Level View of Computer Function and Interconnection

So computers can't think in the same way that people do. But what they do, they do excellently well and very, very fast.

Computers Are Your Future

Full file at

Personal computer hardware From Wikipedia, the free encyclopedia (Redirected from Computer hardware)

Chapter 5 - Input / Output

CS 16: Assembly Language Programming for the IBM PC and Compatibles

Chapter 9: A Closer Look at System Hardware 4

Chapter 9: A Closer Look at System Hardware

CMSC 313 Lecture 26 DigSim Assignment 3 Cache Memory Virtual Memory + Cache Memory I/O Architecture

Motherboard Central Processing Unit (CPU) Random access memory (RAM)

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 2: IA-32 Processor Architecture. Chapter Overview.

What is Output? p Fig. 6-1 Next

1.- Search for information about the difference between BITS, BYTES and other units of measure for digital information.

Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION

ECE 571 Advanced Microprocessor-Based Design Lecture 3

Assembling Computers Summer Academy Presented by the Petters Research Institute (PRI) in cooperation with the Belize Defense Force

COMPUTER HARDWARE RAYMOND ROSE

Chapter 2: Computers: The Machines Behind Computing.

Chapter 9: Peripheral Devices. By: Derek Hildreth Chad Davis

Chapter 1. Computer System Organization

Introduction to a Typical PC. Freedom High School

Parts of Computer hardware Software

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University

Computer Organization

OS And Hardware. Computer Hardware Review PROCESSORS. CPU Registers. CPU Registers 02/04/2013

4) Apple's OS X and Microsoft Windows are examples of software. A) utility B) application C) operating system D) communication

20-Dec-16. Objectives Overview. What Is Output? Objectives Overview. What Is Output? Display devices. Discovering Computers 2012

Computer Hardware. In this lesson we will learn about Computer Hardware, so that we have a better understanding of what a computer is.

FC0-U21 CompTIA Strata IT Fundamentals

Assembly Language for x86 Processors 7 th Edition. Chapter 2: x86 Processor Architecture

Chapter 4 The Components of the System Unit

Contents: Computer definition Computer literacy Computer components Computer categories Computer usage. Tablet PC

Transcription:

CS1101: Lecture 21 Computer Systems Organization: Input/Output Dr. Barry O Sullivan b.osullivan@cs.ucc.ie Buses Lecture Outline A simple personal computer Direct Memory Access Interrupts Bus Arbiter & Cycle Stealing ISA, EISA & PCI Buses Terminals Keyboards Course Homepage http://www.cs.ucc.ie/ osullb/cs1101 Graphics CRT Monitors Flat Panel Displays Types of Terminal Screen Output on the PC Character-Map Terminals Bit-map Terminals Memory & Bit-map Terminals Reading: Tanenbaum, Chapter 2, Section 4 Department of Computer Science, University College Cork Department of Computer Science, University College Cork 1 Buses Motherboard a large printed circuit board. The motherboard contains the chip, some slots and various support chips. It also contains a bus etched along its length, and sockets into which the edge connectors of I/O boards can be inserted. Sound card Modem Edge connector Figure 2-28. computer. Card cage Physical structure of a personal Department of Computer Science, University College Cork 2 A simple personal computer Monitor Hard drive Floppy drive Keyboard Hard Floppy Keyboard Memory Bus Figure 2-29. Logical structure of a simple personal computer. Department of Computer Science, University College Cork 3

Direct Memory Access Interrupts Each I/0 device consists of two parts: One containing most of the electronics, called the and one containing the I/0 hardware device, such as a hard-. The job of a is to control its I/0 device and handle bus access for it. A that reads or writes data to or from memory without intervention is said to be performing Direct Memory Access, better known by its acronym DMA. When the transfer is completed, the normally causes an interrupt This forces the to suspend running its current program and start running a special procedure, called an interrupt handler This handler checks for errors, takes any special action needed, and inform the operating system that the I/0 is now finished. When the interrupt handler is finished, the continues with the program that was suspended when the interrupt occurred. Department of Computer Science, University College Cork 4 Department of Computer Science, University College Cork 5 Bus Arbiter & Cycle Stealing ISA, EISA & PCI Buses The bus is not only used by the I/O s, but also by the for fetching instructions and data. What happens if the and an I/0 want to use the bus at the same time? The bus arbiter decides who goes next. I/O devices are given preference over the When no I/0 is in progress the can have all the bus cycles for itself to reference memory. However, when some I/O device is also running, that device will request and be granted the bus when it needs it. One of the earliest bus architectures in the IBM PC was the ISA (Industry Standard Architecture) bus. However, this bus was too slow for market developments. This situation led to other companies developing machines with multiple buses, one of which was the old ISA bus, or its backwardcompatible successor, the EISA (Extended ISA) bus. The most popular of these now is the PCI (Peripheral Component Interconnect) bus. This process is called cycle stealing. Department of Computer Science, University College Cork 6 Department of Computer Science, University College Cork 7

The PCI Bus A Typical PCI bus Machine Designed by Intel. In configurations based on a PCI bus, the talks to a memory over a dedicated high-speed connection and not over the PCI bus. However, highbandwidth (i.e., high data rate) peripherals, such as s, can connect to the PCI bus directly. scanner bus cache Sound card Printer PCI bridge Memory bus ISA bridge Main memory Network Modem PCI bus The PCI bus would have a bridge to the ISA bus, so that ISA s and their devices can still be used. A machine of this design would typically contain several empty PCI slots and several empty ISA slots, to allow customers to plug in both old ISA I/0 cards (usually for slow devices) and new PCI 1/0 cards (usually for fast devices). ISA bus Figure 2-30. A typical modern PC with a PCI bus and an ISA bus. The modem and sound card are ISA devices; the is a PCI device. Department of Computer Science, University College Cork 8 Department of Computer Science, University College Cork 9 Terminals Keyboards Computer terminals consist of two parts: A keyboard and A monitor. In the mainframe world, these parts are often integrated into a single device and attached to the main computer by a serial line or over a telephone line. In the personal computer world, the keyboard and monitor are independent devices. Keyboards rely on various methods to physically register the pressing of a key mechanical, electromagnetic etc. On PCs, when a key is depressed, an interrupt is generated and the keyboard interrupt handler (a piece of operating system software) is started. The interrupt handler reads a hardware register inside the keyboard to get the number of the key (1 through 102) that was just depressed. When a key is released, a second interrupt is caused. Thus if a user depresses the SHIFT key, then depresses and releases the M key, then releases the SHIFT key, the operating system can see that the user wants an upper case M rather than a lower case m. Department of Computer Science, University College Cork 10 Department of Computer Science, University College Cork 11

CRT Monitors Flat Panel Displays A monitor is a box containing a CRT (Cathode Ray Tube) and its power supplies. Within the CRT an electron beam is accelerated onto a phosphorescent screen near the front of the tube. Color monitors have three electron guns, one each for red, green and blue. Electron gun Grid Screen Spot on screen Horizontal scan CRTs are far too bulky and heavy to be used in notebook computers. The most common screen for notebooks is based on the LCD (Liquid Crystal Display) technology. Two types are common: Passive Matrix Displays Active Matrix Displays Vacuum Vertical deflection plate (a) Vertical retrace Horizontal retrace (b) Figure 2-31. (a) Cross section of a CRT. (b) CRT scanning pattern. Department of Computer Science, University College Cork 12 Department of Computer Science, University College Cork 13 Flat Panel Displays Types of Terminal Rear glass plate Rear electrode Rear polaroid Light source Liquid crystal Front glass plate (a) Front electrode Dark Front polaroid Bright Notebook computer Figure 2-32. (a) The construction of an LCD screen. (b) The grooves on the rear and front plates are perpendicular to one another. y (b) z Three kinds of terminals are in common use: character-map terminals bitmap terminals RS-232-C terminals They all can use any keyboard type The difference is in the way the computer communicates with them and how the output is handled. Department of Computer Science, University College Cork 14 Department of Computer Science, University College Cork 15

Screen Output on the PC Character-Map Terminals On a PC, there are two ways to organize the output to the screen: a character map and a bit map. On a serial communication board is a chunk of memory, called the video memory, as well as some electronics for accessing the bus and generating video signals. Character Main memory Attribute board A2B2C2 RAM Analog video signal Monitor ABC The screen is regarded as an array of characters To display characters, the copies them to the video memory in alternate bytes. Associated with each character is an attribute byte that describes how that character is to be displayed. Attributes can include its color, intensity, whether it is blinking, etc. Thus a screen image of 25 x 80 characters requires 4000 bytes of video memory, 2000 for the characters and 2000 for the attributes. Figure 2-33. computer. Bus Terminal output on a personal Most boards have more memory to hold multiple screen images. Example: MS-DOS based PC screen. Department of Computer Science, University College Cork 16 Department of Computer Science, University College Cork 17 Bit-map Terminals Memory & Bit-map Terminals The screen is regarded as an array of picture elements, called pixels. Each pixel is either on or off it represents one bit of information. On PCs the screen may contain: 640 x 480 pixels, 800 x 600 pixels, 1024 x 768 pixels or 1280 x 960 pixels. The video RAM is just seen as a big bit array. Bit-map terminals are commonly used to support displays containing several windows. Examples: Windows, KDE on Linux. Although bit-map terminals are highly flexible, they have two major disadvantages: RAM intensive Performance issues. To get true color, 8 bits are needed for each of the three primary colors, or 3 bytes/pixel thus a 1024 X 768 display, requires 2.3 MB of video RAM. To display full-screen, full-color multimedia on a 1024 x 768 display requires copying 2.3 MB of data to the video RAM for every frame. To display full-motion video, a rate of at least 25 frame/sec is needed, for a total data rate of 57.6 MB/sec. Thus, high-performance video cards on IBM PCs need to be PCI cards. Department of Computer Science, University College Cork 18 Department of Computer Science, University College Cork 19