3/8/2002CSE 141 - Buses Buses Pentium 4 Processor L1 and L2 caches Memory Controller Hub RDRAM Disks RDRAM I/O Controller Hub 2 133 MB/sec (33 MHz, 32.

Slides:



Advertisements
Similar presentations
Bus Design.
Advertisements

IT253: Computer Organization
Digital Computer Fundamentals
Lecture 21Comp. Arch. Fall 2006 Chapter 8: I/O Systems Adapted from Mary Jane Irwin at Penn State University for Computer Organization and Design, Patterson.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Datorteknik BusInterfacing bild 1 Bus Interfacing Processor-Memory Bus –High speed memory bus Backplane Bus –Processor-Interface bus –This is what we usually.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
IOSystems.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output  Important metrics for an I/O system l Performance.
S. Barua – CPSC 440 CHAPTER 8 INTERFACING PROCESSORS AND PERIPHERALS Topics to be covered  How to.
Lecture 25 Buses and I/O (2)
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
1 CSE SUNY New Paltz Chapters 8 Interfacing Processors and Peripherals.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
TECH CH03 System Buses Computer Components Computer Function
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
CS-334: Computer Architecture
Computer Architecture Lecture 08 Fasih ur Rehman.
Computer Organization CSC 405 Bus Structure. System Bus Functions and Features A bus is a common pathway across which data can travel within a computer.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Storage & Peripherals Disks, Networks, and Other Devices.
MicroComputer Engineering Bus slide 1 What is a bus? Slow vehicle that many people ride together –well, true... A bunch of wires...
Digital System Bus A bus in a digital system is a collection of (usually unbroken) signal lines that carry module-to-module communications. The signals.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
1chapter 8 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Important metrics for an I/O system –Performance.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Peripherals.
LOGO BUS SYSTEM Members: Bui Thi Diep Nguyen Thi Ngoc Mai Vu Thi Thuy Class: 1c06.
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Top Level View of Computer Function and Interconnection.
Bus Mr. Mukul Varshney. Bus A bus, in computing, is a set of physical connections (cables, printed circuits, etc.) which can be shared by multiple hardware.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
1 IKI10230 Pengantar Organisasi Komputer Bab 4.2: DMA & Bus 26 Maret 2003 Bobby Nazief Qonita Shahab bahan kuliah:
CSIE30300 Computer Architecture Unit 11: Bus and I/O Systems Hsin-Chou Chi [Adapted from material by and
MBG 1 CIS501, Fall 99 Lecture 18: Input/Output (I/O): Buses and Peripherals Michael B. Greenwald Computer Architecture CIS 501 Fall 1999.
Datorteknik F1 bild 1 What is a bus? Slow vehicle that many people ride together –well, true... A bunch of wires...
1 IKI20210 Pengantar Organisasi Komputer Kuliah No. 20: DMA & Standard I/O Bus 27 November 2002 Bobby Nazief Johny Moningka
EEE440 Computer Architecture
I/O—I/O Busses Professor Alvin R. Lebeck Computer Science 220 Fall 2001.
Datorteknik F1 bild 1 What is a bus? Slow vehicle that many people ride together –well, true... A bunch of wires...
Csci 136 Computer Architecture II – Buses and IO
CS2100 Computer Organisation Input/Output – Own reading only (AY2015/6) Semester 1 Adapted from David Patternson’s lecture slides:
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1  2004 Morgan Kaufmann Publishers Page Tables. 2  2004 Morgan Kaufmann Publishers Page Tables.
1 Computer Architecture & Assembly Language Spring 2001 Dr. Richard Spillman Lecture 19 – IO II.
Lecture 2. A Computer System for Labs
Buses: Presentation Outline
Interconnection Structures
Department of Computer Science and Engineering
Bus Interfacing Processor-Memory Bus Backplane Bus I/O Bus
What is a bus? Slow vehicle that many people ride together
Chapter 8-A BUS.
Input-output I/O is very much architecture/system dependent
Overview of Computer Architecture and Organization
I/O BUSES.
Buses: Presentation Outline
Overview of Computer Architecture and Organization
William Stallings Computer Organization and Architecture
Presentation transcript:

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

CSE Buses2 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. Control Datapath Memory Processor Input Output

CSE Buses3 Advantages of Buses 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. Memory Processor I/O Device

CSE Buses4 Disadvantage of Buses It creates a communication bottleneck –Bus 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 Memory Processor I/O Device

CSE Buses5 The General Organization of a Bus 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 Data Lines Control Lines

CSE Buses6 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 Bus Master Bus Slave Master issues command Data can go either way

CSE Buses7 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

CSE Buses8 System with only one bus 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) ProcessorMemory I/O Devices Backplane Bus

CSE Buses9 A Two-Bus System I/O buses tap into the processor-memory bus via bus adaptors: –Processor-memory bus: mainly for processor- memory traffic –I/O buses: provide expansion slots for I/O devices ProcessorMemory I/O Bus Processor Memory Bus Bus Adaptor Bus Adaptor Bus Adaptor I/O Bus I/O Bus

CSE Buses10 A Three-Bus System 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. ProcessorMemory Processor Memory Bus Bus Adaptor Bus Adaptor Bus Adaptor I/O Bus Backplane Bus I/O Bus

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

CSE Buses12 Synchronous vs Asynchronous Bus Synchronous Bus: –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 Bus: –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

CSE Buses13 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??

CSE Buses14 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

CSE Buses15 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.

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

CSE Buses17 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

CSE Buses18 Bus arbitration: choosing a master Bus arbitration schemes must to balance 2 factors: –Bus priority: highest priority device should be serviced first –Fairness: even the lowest priority device should never be completely locked out from the bus 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)

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

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

CSE Buses21 Increasing the Bus 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-to- back bus cycles –Only one address needs to be sent at the beginning –Bus isn’t released until the last word is transferred –Cost: (a) increased complexity (b) decreased response time for request

CSE Buses22 Summary of Bus Options OptionHigh performanceLow cost Bus widthSeparate addressMultiplex address & data lines& data lines Data widthWider is fasterNarrower is cheaper (e.g., 32 bits)(e.g., 8 bits) Transfer size Multiple words hasSingle-word transfer less bus overheadis simpler Bus mastersMultipleSingle master (requires arbitration)(no arbitration) ClockingSynchronousAsynchronous ProtocolPipelinedSerial

CSE Buses23 Computer of the day Sony PlayStation 2 (from –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 ) 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!