Bus System. Bus Lines. Bus Systems. Chapter 8. Common connection between the CPU, the memory, and the peripheral devices.

Similar documents
Buses. Disks PCI RDRAM RDRAM LAN. Some slides adapted from lecture by David Culler. Pentium 4 Processor. Memory Controller Hub.

Interfacing. Introduction. Introduction Addressing Interrupt DMA Arbitration Advanced communication architectures. Vahid, Givargis

Introduction to Embedded System I/O Architectures

The von Neuman architecture characteristics are: Data and Instruction in same memory, memory contents addressable by location, execution in sequence.

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

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

Chapter 8. A Typical collection of I/O devices. Interrupts. Processor. Cache. Memory I/O bus. I/O controller I/O I/O. Main memory.

CS152 Computer Architecture and Engineering Lecture 20: Busses and OS s Responsibilities. Recap: IO Benchmarks and I/O Devices

INPUT/OUTPUT ORGANIZATION

HANDLING MULTIPLE DEVICES

Organisasi Sistem Komputer

Reading and References. Input / Output. Why Input and Output? A typical organization. CSE 410, Spring 2004 Computer Systems

Computer Architecture CS 355 Busses & I/O System


Computer Science 146. Computer Architecture

Programmed I/O Interrupt-Driven I/O Direct Memory Access (DMA) I/O Processors. 10/12/2017 Input/Output Systems and Peripheral Devices (02-2)

Input/Output Introduction

Introduction. Motivation Performance metrics Processor interface issues Buses

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University

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

INPUT/OUTPUT ORGANIZATION

Readings, exercises: Chapter 11 (Due: 10/4) Homework keys Study group(s) Prelim 1 10/6!

Chapter 13: I/O Systems. Operating System Concepts 9 th Edition

Introduction to Input and Output

ECE468 Computer Organization and Architecture. OS s Responsibilities

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

Embedded Systems: Hardware Components (part II) Todor Stefanov

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

The control of I/O devices is a major concern for OS designers

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

Chapter 13: I/O Systems

Lecture 13 Input/Output (I/O) Systems (chapter 13)

Chapter 6. I/O issues

Chapter 12: I/O Systems

Chapter 13: I/O Systems

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition

Digital Design Laboratory Lecture 6 I/O

Unit 5. Memory and I/O System

Input / Output. School of Computer Science G51CSA

by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS

4 Multiplexer. Y Fig Keyboard Scan Matrix

Chapter 13: I/O Systems

I/O. Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University. See: P&H Chapter 6.5-6

Lecture 13. Storage, Network and Other Peripherals

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

Module 12: I/O Systems

Computer Architecture. Hebrew University Spring Chapter 8 Input/Output. Big Picture: Where are We Now?

Babbage Analytical Machine

Interconnecting Components

ECE 485/585 Microprocessor System Design

INPUT-OUTPUT ORGANIZATION

Chapter 13: I/O Systems

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial)

Module 12: I/O Systems

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

INPUT-OUTPUT ORGANIZATION

Last class: Today: Course administration OS definition, some history. Background on Computer Architecture

Computer Systems Laboratory Sungkyunkwan University

Introduction I/O 1. I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec

Input/Output Systems

IO System. CP-226: Computer Architecture. Lecture 25 (24 April 2013) CADSL

Module 11: I/O Systems

Replacement Policy: Which block to replace from the set?

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14

Module 6: INPUT - OUTPUT (I/O)

PCI and PCI Express Bus Architecture

SEMICON Solutions. Bus Structure. Created by: Duong Dang Date: 20 th Oct,2010

6 Direct Memory Access (DMA)

Modes of Transfer. Interface. Data Register. Status Register. F= Flag Bit. Fig. (1) Data transfer from I/O to CPU

C02: Interrupts and I/O

Top-Level View of Computer Organization

Chapter 7 : Input-Output Organization

Chapter 13: I/O Systems

MULTIPROCESSORS. Characteristics of Multiprocessors. Interconnection Structures. Interprocessor Arbitration

Today: I/O Systems. Architecture of I/O Systems

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

Device-Functionality Progression

Chapter 12: I/O Systems. I/O Hardware

Chapter 13: I/O Systems

Lecture 23. I/O, Interrupts, exceptions

Chapter 13: I/O Systems

3. Controtlto specify the mode of transfer such as read or write 4. A control to start the DMA transfer

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

System Buses Ch 3. Computer Function Interconnection Structures Bus Interconnection PCI Bus. 9/4/2002 Copyright Teemu Kerola 2002

L12: I/O Systems. Name: ID:

Chapter 13: I/O Systems

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

INPUT/OUTPUT ORGANIZATION

Eastern Mediterranean University School of Computing and Technology INPUT / OUTPUT

EE108B Lecture 17 I/O Buses and Interfacing to CPU. Christos Kozyrakis Stanford University

Chapter Seven Morgan Kaufmann Publishers

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

Discussion Week 8. TA: Kyle Dewey. Tuesday, November 15, 11

ECE 551 System on Chip Design

Buses. Maurizio Palesi. Maurizio Palesi 1

8. Interfacing Processors and Peripherals

Chapter 13: I/O Systems

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

Storage Systems. Storage Systems

Transcription:

Bus System Chapter 8 CSc 314 T W Bennet Mississippi College 1 CSc 314 T W Bennet Mississippi College 3 Bus Systems Common connection between the CPU, the memory, and the peripheral devices. One device issues a request for information over the bus, and another device sends the information in response. Bus Lines Control Data/Address Control Data Address CSc 314 T W Bennet Mississippi College 2 CSc 314 T W Bennet Mississippi College 4

Bus Lines Output Through a Bus Control signals Several lines. Processor uses them to control communication. Other devices may make requests to the processor. Data/Address May be 8, 16 or some other width. May use shared data and address lines (cheaper) or separate (faster). CSc 314 T W Bennet Mississippi College 5 CSc 314 T W Bennet Mississippi College 7 Input Through a Bus Types of Busses Processor-Memory (Local Bus): Short, transfer at memory speed. Connect CPU, memory, and maybe a few fast devices. I/O Busses: Long, slow. SCSI, IDE Backplane Busses: Keep everyone happy. PCI Distinctions are not always clear. CSc 314 T W Bennet Mississippi College 6 CSc 314 T W Bennet Mississippi College 8

Bus Arrangements Synchronous Busses All connections to the bus share the same clock and clock periods. Each device knows what it may do during each period. Bus length is limited. Clock signals don t travel well over long wires. Faster than asynchronous. CSc 314 T W Bennet Mississippi College 9 CSc 314 T W Bennet Mississippi College 11 Synchronous/Asynchronous Busses Synchronous: Bus has a clock and devices are synchronized. Asynchronous: Bus had no clock and devices must handshake. Asynchronous Busses Each communicating device has own clock. s use special signals to keep track of each other and know what to do next. Works over longer distances. s may be added easily. Slower than synchronous. CSc 314 T W Bennet Mississippi College 10 CSc 314 T W Bennet Mississippi College 12

Handshaking Protocol Performance Parameters Data bus width. More wires mean more bits at a time. Separate data/address lines. Block transfers. CSc 314 T W Bennet Mississippi College 13 CSc 314 T W Bennet Mississippi College 15 State Machines for Handshaking The Bus Master The device which initiates transfers on the bus. Simplest: Only the CPU Faster: Multiple bus masters. If the CPU is the only bus master, it must be involved in every transfer. It is better to relieve the CPU of this work. CSc 314 T W Bennet Mississippi College 14 CSc 314 T W Bennet Mississippi College 16

Bus Arbitration Centralized Can t all talk at once. Who gets to be bus master? Daisy Chain. Requests go through each device in increasing priority. 1 2 n Centralized. All requests go through a centralized arbiter. Distributed by self-selection. Each device knows all pending requests and yields to the highest priority. Bus arbiter Grant Request Distributed by collision-detection. Try it; if it collided, try it again. Release CSc 314 T W Bennet Mississippi College 17 CSc 314 T W Bennet Mississippi College 19 Daisy Chain Commanding s The CPU writes data interpreted as command codes. The CPU reads status information. Memory-mapped: s are given addresses in real address space. Dedicated I/O instructions. CSc 314 T W Bennet Mississippi College 18 CSc 314 T W Bennet Mississippi College 20

User Programs Need Not Apply Only the O/S is allowed to communicate with devices. Memory-mapped device addresses are not part of user space. I/O instructions are not permitted in privileged mode. Polling v. Interrupts Polling: CPU repeatedly reads the status. Interrupts: The device informs the CPU when something happens. Polling is simpler, interrupts are more efficient. CSc 314 T W Bennet Mississippi College 21 CSc 314 T W Bennet Mississippi College 23 O/S Enforces Security Reading keyboards. File permissions. File system integrity. Data Transfer Processor can direct each transfer. A separate device can direct block transfers. Direct Memory Access (DMA). Network packets for other processes. User programs could bypass the O/S security systems and data structures if they could make direct access to devices. CSc 314 T W Bennet Mississippi College 22 CSc 314 T W Bennet Mississippi College 24

Direct Memory Access Mac I/O Bus or Backplane Bus CPU Memory DMA Controller Other Memory Bus CSc 314 T W Bennet Mississippi College 25 CSc 314 T W Bennet Mississippi College 27 Direct Memory Access CPU sends instructions to DMA. DMA controller moves a block of data from the other device to the memory. CPU does something else in the mean time. DMA controller interrupts CPU when done. CSc 314 T W Bennet Mississippi College 26