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

Similar documents
Chapter 6. I/O issues

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

Lecture 13. Storage, Network and Other Peripherals

Input/Output Introduction

Introduction. Motivation Performance metrics Processor interface issues Buses

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

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.

Introduction to Input and Output

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

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University

Lecture 25: Busses. A Typical Computer Organization

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

Recap: What is virtual memory? CS152 Computer Architecture and Engineering Lecture 22. Virtual Memory (continued) 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

PCI and PCI Express Bus Architecture

ECE 485/585 Microprocessor System Design

This page intentionally left blank

Virtual Memory Input/Output. Admin

ECE 551 System on Chip Design

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

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Outline of Today s Lecture. The Big Picture: Where are We Now?

Introduction to Embedded System I/O Architectures

INPUT/OUTPUT ORGANIZATION

The CoreConnect Bus Architecture

Buses. Maurizio Palesi. Maurizio Palesi 1

Computer Architecture CS 355 Busses & I/O System

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

INPUT/OUTPUT ORGANIZATION

Module 6: INPUT - OUTPUT (I/O)

Chapter Seven Morgan Kaufmann Publishers

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

2. System Interconnect Fabric for Memory-Mapped Interfaces

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

Bus Example: Pentium II

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

Babbage Analytical Machine

Introduction to the PCI Interface. Meeta Srivastav

Recap: Making address translation practical: TLB. CS152 Computer Architecture and Engineering Lecture 24. Busses (continued) Queueing Theory Disk IO

1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7.

ECE468 Computer Organization and Architecture. OS s Responsibilities

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

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review

Storage Systems. Storage Systems

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

The Nios II Family of Configurable Soft-core Processors

Chapter 6 Storage and Other I/O Topics

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

Computer Science 146. Computer Architecture

Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses

CS152 / Kubiatowicz Lec23.1. Capacity Access Time Cost. CPU Registers 100s Bytes <10s ns. Cache K Bytes ns $ /bit

I/O Systems. EECC551 - Shaaban. Processor. Cache. Memory - I/O Bus. Main Memory. I/O Controller. I/O Controller. I/O Controller. Graphics.

The D igital Digital Logic Level Chapter 3 1

Lecture 23: I/O Redundant Arrays of Inexpensive Disks Professor Randy H. Katz Computer Science 252 Spring 1996

Interconnection Structures. Patrick Happ Raul Queiroz Feitosa

Computer Systems Laboratory Sungkyunkwan University

CHAPTER 4 MARIE: An Introduction to a Simple Computer

INPUT/OUTPUT ORGANIZATION

Lecture #9-10: Communication Methods

ECE331: Hardware Organization and Design

SoC Design Lecture 11: SoC Bus Architectures. Shaahin Hessabi Department of Computer Engineering Sharif University of Technology

STANDARD I/O INTERFACES

PC I/O. May 7, Howard Huang 1

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

Lecture 23. Finish-up buses Storage

Key Points. Rotational delay vs seek delay Disks are slow. Techniques for making disks faster. Flash and SSDs

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

Digital Logic Level. Buses PCI (..continued) PTE MIK MIT

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont.

Lectures More I/O

Interconnecting Components

CS152 Computer Architecture and Engineering Lecture 21 Buses and Networks Dave Patterson (

Thomas Polzer Institut für Technische Informatik

CS152 Computer Architecture and Engineering Lecture 21 Buses and Networks Dave Patterson (

Embedded Systems: Hardware Components (part II) Todor Stefanov

Storage. Hwansoo Han

ECE 485/585 Microprocessor System Design

Hardware Design. MicroBlaze 7.1. This material exempt per Department of Commerce license exception TSU Xilinx, Inc. All Rights Reserved

L12: I/O Systems. Name: ID:

Replacement Policy: Which block to replace from the set?

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

CHAPTER 6 FPGA IMPLEMENTATION OF ARBITERS ALGORITHM FOR NETWORK-ON-CHIP

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

SONICS, INC. Sonics SOC Integration Architecture. Drew Wingard. (Systems-ON-ICS)


Computer Architecture

Interface Synthesis. Communication Synthesis

8. I/O Buses and Interfaces

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring Lecture 19: Networks and Distributed Systems

The RM9150 and the Fast Device Bus High Speed Interconnect

Digital Design Laboratory Lecture 6 I/O

Embedded Busses. Large semiconductor. Core vendors. Interconnect IP vendors. STBUS (STMicroelectronics) Many others!

8. Interfacing Processors and Peripherals

Organisasi Sistem Komputer

ECE232: Hardware Organization and Design

Final Lecture. A few minutes to wrap up and add some perspective

Readings. Storage Hierarchy III: I/O System. I/O (Disk) Performance. I/O Device Characteristics. often boring, but still quite important

Buses, Video, and Upgrades

Typical System Implementation

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

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

Transcription:

es > 100 MB/sec Pentium 4 Processor L1 and L2 caches Some slides adapted from lecture by David Culler 3.2 GB/sec Display Memory Controller Hub RDRAM RDRAM Dual Ultra ATA/100 24 Mbit/sec Disks LAN I/O Controller Hub 2 4 USB Ports PCI 100 Mbit/sec Ethernet 133 MB/sec (33 MHz, 32 bits wide) 3/8/2002

What is a bus? A shared communication link A single set of wires (aka lines) used to connect two or more components Unlike a typical wire in a processor, a bus can communicate in different directions at different times. Processor Control Datapath Memory Input Output 2

Advantages of es Versatility: New devices can be added easily Peripheral devices can be moved between computer systems that use the same bus standard Low Cost: A single set of wires is shared in multiple ways Provides a way to manage the complexity of design Device only has to implement the bus standard. Processor I/O Device I/O Device I/O Device Memory 3

Disadvantage of es It creates a communication bottleneck bandwidth can limit the maximum I/O throughput The maximum bus speed is largely limited by: The length of the bus The number of devices on the bus The need to support a range of devices with: Widely varying latencies Widely varying data transfer rates Processor I/O Device I/O Device I/O Device Memory 4

The General Organization of a Control Lines Data Lines 5 Control lines: Signal requests and acknowledgments Indicate what type of information is on the data lines, if there are errors, etc. Data lines carry information between the source and the destination: Data Addresses Complex commands

Typical bus transaction 1. Various components request access to bus 2. One is selected (it becomes the bus master for this transaction) 3. The master puts an address and request type (e.g. read or write) on the bus 4. The master and the addressed component (slave) send data one way or the other (depending on request type) 5. The bus master signals that it s done. Return to step 1 Master Master issues command Data can go either way Slave 6

Types of buses Processor memory bus very short (a few inches) usually designed for specific processor. highest bandwidth, lowest latency optimized for cache block transfers Backplane bus up to about 20 inches long backplane = an interconnection structure within the chassis connects proc&memory to nearby components (multimedia accelerators, network cards, I/O adaptors,...) standardized, allowing multiple vendors of devices I/O buses longer, lower bandwidth, higher latency connect to other devices (disk, printer, other computers...) need to match a wide range of I/O devices connects to the processor-memory bus or backplane bus 7

System with only one bus Processor Backplane Memory I/O Devices A single bus (the backplane bus) is used for: Processor to memory communication Communication between I/O devices and memory Advantages: Simple and low cost Disadvantage: slow - the bus is a major bottleneck Example: IBM PC AT (ancient history) 8

A Two- System Processor Processor Memory Memory Adaptor I/O Adaptor I/O Adaptor I/O I/O buses tap into the processor-memory bus via bus adaptors: 9 Processor-memory bus: mainly for processormemory traffic I/O buses: provide expansion slots for I/O devices

A Three- System Processor Processor Memory Memory Backplane Adaptor Adaptor Adaptor I/O I/O Backplane bus taps into the processor-memory bus I/O buses are connected to the backplane bus Advantage: much less load on the processor bus. 10

Example: Pentium 4 system Pentium 4 Processor > 100 MB/sec L1 and L2 caches 3.2 GB/sec Display Memory Controller Hub RDRAM RDRAM Dual Ultra ATA/100 Disks LAN I/O Controller Hub 2 100 Mbit/sec Ethernet 24 Mbit/sec 4 USB Ports PCI 133 MB/sec (33 MHz, 32 bits wide) 11

Synchronous vs Asynchronous Synchronous: Control and data signals move with respect to a common clock (usually one of the bus control lines) Advantage: low latency & high bandwidth. Disadvantages: Every device on the bus must run at the same clock rate To avoid clock skew, bus cannot be long if it is fast Asynchronous: It is not clocked It can accommodate a wide range of devices It can be lengthened without worrying about clock skew Communication protocol is more complicated 12

Typical asynchronous bus protocol 1. Sender puts data on data lines, sets a control line to mean Hey! I put some data on the line 2. Receiver sees the control lines, reads the data, then sets a different line to mean OK, I got it. You can move on to the next settings. 3. Sender turns off its data and control lines. 4. Receiver turns off it s acknowledgement control line. We are now ready for the next transaction. Why does sender need to wait for step 4?? 13

Synchronous bus example: the PCI bus PCI = Peripheral Component Interconnection Introduced by Intel in early 90 s Adapted as industry standard used in PC s, Mac s, etc Initially 33 MHz, improved to 66. PCI-X is 133 MHz. Two widths: 32 or 64 data lines. 32 bits wide, 66 MHz 266 MByte/sec peak bw Write protocol: master component puts address on bus (1 cycle) then sends data for 0 to many cycles Read protocol: master component puts address on bus, then 1 idle cycle responding component puts data on bus for 0 to many cycles 14

The PCI standard (No, you don t need to know this but it may help understand what PCI is.) The 32-bit PCI standard specifies a 62-pin connection: 32 data lines (used both for address and data) 4 Command/Byte Enable lines 2 Wait lines (one each way) Hold up a moment! 2 Stop lines (one each way) I m finished! 2 lines for Request and Grant (we ll get to in a moment) Assorted other required control signals, e.g. clock, reset, parity, 2 error lines,... And a bunch of optional control lines for interrupts, cache control, etc. 15

es so far... Master Slave 16 Control Lines Address Lines Data Lines Master: has ability to control the bus, initiates transaction Slave: module activated by the transaction Communication Protocol: specification of sequence of events and timing requirements in transferring information. Asynchronous Transfers: control lines (req, ack) serve to orchestrate sequencing. Synchronous Transfers: sequence relative to common clock.

Choosing a master How do you decide which component will be the bus master - the one that initiates a bus transaction? The simplest solution: The processor is the only bus master Major drawback: the processor is involved in every transaction. Multiple masters: A bus master wanting to use the bus makes a request It cannot use the bus until its request is granted It must release the bus when it s finished PCI bus (and others) use request and grant signals 17

arbitration: choosing a master arbitration schemes must to balance 2 factors: priority: highest priority device should be serviced first Fairness: even the lowest priority device should never be completely locked out from the bus arbitration schemes can be divided into four broad classes: Daisy chain arbitration Centralized arbitration Distributed arbitration by self-selection: each device wanting the bus places an id code on the bus. they all follow the same protocol to choose master Distributed arbitration by collision detection (e.g. Ethernet) 18

Daisy Chain Arbitration Device 1 Highest Priority Device 2 Device N Lowest Priority Arbiter Grant Grant Grant Release Request Advantage: simple Disadvantages: wired-or Doesn t assure fairness: A low-priority device may be locked out indefinitely The daisy chain grant signal also limits the bus speed 19

Centralized Arbitration Device 1 Device 2 Device N Arbiter Grant Req Used in essentially all processor-memory busses and in high-speed I/O busses 20

21 Increasing the Bandwidth Use separate address lines and data lines: Address and data can be transmitted in one bus cycle Cost: more bus lines Increase bus width: By increasing the width of the data bus, transfers of multiple words require fewer bus cycles Example: SPARCstation 20 s memory bus is 128 bit wide Cost: more bus lines Block transfers: Allow the bus to transfer multiple words in back-toback bus cycles Only one address needs to be sent at the beginning isn t released until the last word is transferred Cost: (a) increased complexity (b) decreased response time for request

Summary of Options Option High performance Low cost width Separate address Multiplex address & data lines & data lines Data width Wider is faster Narrower is cheaper (e.g., 32 bits) (e.g., 8 bits) Transfer size Multiple words has Single-word transfer less bus overhead is simpler masters Multiple Single master (requires arbitration) (no arbitration) Clocking Synchronous Asynchronous Protocol Pipelined Serial 22

Computer of the day Sony PlayStation 2 (from www.arstechnica.com/reviews/1q00/playstation2ee-1.html) 23 MIPS III core (2 issue with 128-bit multimedia insts) plus: Two vector units (VU), each of which can issue 2 instructions per cycle, one of which can be a 4-way SIMD instruction. Thus, each VU can issue four 32-bit Float Multiply-Adds instructions/cycle plus one more instruction. PS2 can do about 10 fma s and 4 float divides per cycle At 250MHz, that s 6 GFLOP/sec DMA controller can handle 10 simultaneous transactions (e.g. to sound chip, graphics engine). Lots of buses, special caches, MPEG-2 decoder, etc PS2 also has Graphics, Sound, and I/O processors. You ain t seen nothing yet! PS3 (expected 2004-5) should be a 1 TFLOP/sec machine! If FLOP/sec were everything, that would be almost as fast as SDSC s Blue Horizon, for 1/10,000 the cost!