Microcomputer Buses Outline –What is a Bus? –Interfaces –Open Collector Buses –Tristate Buses –Bus Contention –Transmission Lines Goal –Understand bus.

Slides:



Advertisements
Similar presentations
CMOS Logic Circuits.
Advertisements

Topics Electrical properties of static combinational gates:
Ch 3. Digital Circuits 3.1 Logic Signals and Gates (When N=1, 2 states)
TTL (Transistor Transistor Logic).  Transistor Transistor logic or just TTL, logic gates are built around only transistors.  TTL was developed in 1965.
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
11/24/2004EE 42 fall 2004 lecture 361 Lecture #36: Transmission lines Last lecture: –Transmission lines –Balanced and unbalanced –Propagation This lecture:
[ 1 ] LVDS links Servizio Elettronico Laboratori Frascati INFN - Laboratori Nazionali di Frascati G. Felici LVDS links.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Logic Families and Their Characteristics
Ch 11 Bipolar Transistors and Digital Circuits
CMOS Family.
Clock Design Adopted from David Harris of Harvey Mudd College.
ELK 06/21/00 Desktop Interface EngineeringATA/100 Eric Kvamme Quantum Corporation Manager, Desktop Interface Engineering (408)
ISLAMIC UNIVERSITY OF GAZA Faculty of Engineering Computer Engineering Department EELE3321: Digital Electronics Course Asst. Prof. Mohammed Alhanjouri.
Voltage Transfer Characteristic for TTL
04/11/02EECS 3121 Lecture 26: Interconnect Modeling, continued EECS 312 Reading: 8.2.2, (text) HW 8 is due now!
EELE 461/561 – Digital System Design Module #6 Page 1 EELE 461/561 – Digital System Design Module #6 – Differential Signaling Topics 1.Differential and.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #5
3.3 CMOS Logic 1. CMOS Logic Levels NextReturn Logic levels for typical CMOS Logic circuits. Logic 1 (HIGH) Logic 0 (LOW) Undefined Logic level 5.0V 3.5V.
Integrated Regulation for Energy- Efficient Digital Circuits Elad Alon 1 and Mark Horowitz 2 1 UC Berkeley 2 Stanford University.
CSS Lecture 2 Chapter 3 – Connecting Computer Components with Buses Bus Structures Synchronous, Asynchronous Typical Bus Signals Two level, Tri-state,
Lecture 21, Slide 1EECS40, Fall 2004Prof. White Lecture #21 OUTLINE –Sequential logic circuits –Fan-out –Propagation delay –CMOS power consumption Reading:
THE TEST RECIVER Presentation In The Framework Of JTAG Course Lior Vaknin - June 2005.
Digital logic families
Practical Aspects of Logic Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum.
IC packaging and Input - output signals
1 Terminations Chris Allen Course website URL people.eecs.ku.edu/~callen/713/EECS713.htm.
CSET 4650 Field Programmable Logic Devices
INTEGRATED CIRCUIT LOGIC FAMILY
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 36: December 7, 2012 Transmission Line.
Ch 10 MOSFETs and MOS Digital Circuits
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 38: December 3, 2014 Transmission Lines.
Electrical Characteristics of Logic Gates Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 39: December 6, 2013 Repeaters in Wiring.
PCB Layout Introduction
Practical Digital Design Considerations Part 1 Last Mod: January 2008 ©Paul R. Godin.
EE415 VLSI Design DYNAMIC LOGIC [Adapted from Rabaey’s Digital Integrated Circuits, ©2002, J. Rabaey et al.]
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 35: December 5, 2012 Transmission Lines.
PCB Layout Introduction
Chapter 07 Electronic Analysis of CMOS Logic Gates
1.0 INTRODUCTION  Characteristics of the active electronic components that determine the internal construction and operation of electronic circuitry.
Modern VLSI Design 2e: Chapter 3 Copyright  1998 Prentice Hall PTR Topics n Electrical properties of static combinational gates: –transfer characteristics;
Chapter 11 Logic Gate Circuitry.
Transmission Lines No. 1  Seattle Pacific University Transmission Lines Kevin Bolding Electrical Engineering Seattle Pacific University.
CSS 372 Oct 4th - Lecture 3 Chapter 3 – Connecting Computer Components with Buses Bus Structures Synchronous, Asynchronous Typical Bus Signals Two level,
University of Tehran 1 Interface Design PCB Design Tips Omid Fatemi.
IC Logic Families Wen-Hung Liao, Ph.D.
11/22/2004EE 42 fall 2004 lecture 351 Lecture #35: data transfer Last lecture: –Communications synchronous / asynchronous –Buses This lecture –Transmission.
1 Interconnect/Via. 2 Delay of Devices and Interconnect.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
FPGA-Based System Design: Chapter 2 Copyright  2004 Prentice Hall PTR Topics n Logic gate delay. n Logic gate power consumption. n Driving large loads.
Solid-State Devices & Circuits
Modern VLSI Design 3e: Chapter 3 Copyright  1998, 2002 Prentice Hall PTR Topics n Electrical properties of static combinational gates: –transfer characteristics;
Electrical Characteristics of IC’s Part 2
EE415 VLSI Design THE INVERTER [Adapted from Rabaey’s Digital Integrated Circuits, ©2002, J. Rabaey et al.]
Dynamic Logic.
EE141 Combinational Circuits 1 Chapter 6 (I) Designing Combinational Logic Circuits Dynamic CMOS LogicDynamic CMOS Logic V1.0 5/4/2003.
Chapter 3 Parallel Ports, Power Supply and the Clock Oscillator The aims of this chapter are to introduce: Why we need parallel input/output; How simple.
Physical Properties of Logic Devices Technician Series Created Mar
Chapter 2. High-speed properties of logic gates.
발표자 : 이재신 발표 일시 : Chapter 2 Hardware Fundamentals for the Software Engineer The embedded-systems software engineer must often understand.
Electrical Characteristics of Logic Gates
전자파 연구실 1. Fundamentals. 전자파 연구실 1.1 Frequency and time Passive circuit elements is emphasized in high speed digital design : Wires, PCB, IC- package.
High Speed Properties of Digital Gates, Copyright F. Canavero, R. Fantino Licensed to HDT - High Design Technology
Power Distribution Copyright F. Canavero, R. Fantino Licensed to HDT - High Design Technology.
TERMINATIONS Copyright F. Canavero, R. Fantino Licensed to HDT - High Design Technology.
IC packaging and Input - output signals
Chapter 06 Logic Gate Circuitry.
EI205 Lecture 15 Dianguang Ma Fall 2008.
Reading: Hambley Ch. 7; Rabaey et al. Sec. 5.2
Presentation transcript:

Microcomputer Buses Outline –What is a Bus? –Interfaces –Open Collector Buses –Tristate Buses –Bus Contention –Transmission Lines Goal –Understand bus basics –Understand bus analysis Reading –Microprocessor Systems Design, Clements, Ch. 10

What is a Bus? Bus functions –distribute power –distribute clocks –data transfer Standards –mechanical –electrical –protocol Challenges –cheap - use few wires –fast - over long distances –good - plug-and-play

Mechanical Interfaces Dominant cost factor Minimal performance factor Band/blade connector –gold-plated fingers on edge of PCB –push into socket with spring-loaded fingers –cheap, but unreliable, low density, board must be vertical –today used for daughter cards, e.g. memory modules Socket connector –half of socket on bus backplane, half on board –pin connections –reliable, dense, more expensive, variety of orientations –used for larger daughter cards, system bus, etc.

Electrical Interface Goal - transmit signals fast and reliably Bus drivers –convert logic level to standard electrical signal drive on bus –must avoid bus contention - driver fighting Bus receivers –receive standard signal, convert to logic level –fast, noise immune, low bus loading Bus wire transmission characteristics –ideally just a capacitor –really a messy transmission line »reflections »coupling to neighboring lines –presence/absence of cards changes characteristics

Bus Drivers/Receivers Must maintain proper voltage and current levels –V OH /V OL - output high/low voltage –V IH /V IL - input high/low voltage –I OH /I OL - output high/low current (positive means sink) –I IH /I IL - input high/low current (negative means source) DC noise immunity –high-level voltage immunity = V OH - V IH –low-level voltage immunity = V IL - V OL –the larger, the better for noise, but can reduce speed –bus drivers and receivers must agree on logic 0/1 levels

Current Levels Bus driver must be able to source/sink sufficient current –e.g. source 20 uA, sink 0.4 mA for every LS TTL input driven –maintains DC logic values Current drive must be much higher to achieve speed –driving large capacitance of bus –75 MHz, pF loads, 5V, 50% margin => 750 mA –receiver design tries to minimize capacitance –use standard receivers at card interface »shield internal card capacitance »provide standard load »but cause additional delay

Passive Drivers How to hook multiple drivers to bus –standard TTL or CMOS will fight if driving both 0 and 1 –most standard logic will burn out Solution: passive drivers –can only pull bus down –use resistor to pull bus up –open collector driver »open drain in CMOS/NMOS technology –wired OR - any driver can pull down bus to logic 0

Resistor Design Conflicting requirements –maximum value that will keep logic 1 on bus –minimum value for speed, driver sink capability Maximum –keep V OH with m drivers, n receivers »I leakage for drivers = 250 uA for LS TTL »I IL for receivers = 20 uA for LS TTL –noise margin = 0.4V »V IH = 2.0V for LS TTL => V OH = 2.4V –assume 10 drivers, 10 receivers –R max = (V cc - 2.4V)/(10*250uA+10*20uA) = 1000 ohms

Resistor Design (cont.) Minimum value –single driver must be able to achieve V OL –V OL = 0.4V for 0.4V margin since V IL = 0.4V –I IL = 0.4 mA –I OL = 16 mA –no driver leakage current –assume 10 receivers –Rmin = (V cc - V OL )/(I OL - n*I IL ) = 300 ohms Speed –assume 100 pF per driver/receiver –10 driver/receivers => 1000 pF load –delay ~ 2*R*C = us => really slow Power –128 address/data lines * 5*(5-0.4)/300 = 9.8 W –assume half of lines are high => ~5 W

Tristate Drivers Driver has three states –logic 0, logic 1, high impedance –usually inverter or buffer with extra enable line Most common type of driver Transceiver –driver pairs in opposite directions, separate enable lines –driver in one direction acts as receiver –use for bidirectional interfaces Buffer control –need to control enable of drivers –tricky for bidirectional buses –tristate unless in use

Bus Contention Static contention –only one driver in each logical state Dynamic contention –timing delays cause driver A switches on before drive B is off Example –read-after-write bus cycle –CPU had data bus drivers on for write –memory turns on data bus drivers for read Must examine logic and timing diagrams for all situations switching driver source

Bus Contention Analysis 40 MHz write to read transition –buffered AS* controls data bus drivers –can ignore receivers Analysis –t separation = delay between driver A off, driver B on –positive means no overlap –t SH - min. AS* negation time –t HL /t LH - min. high-to-low/max. low-to-high AS* buffer delay –t OFF /t ON - max. driver off/min. driver on delay –assume LS TTL –t separation = t SH - t LH - t OFF + t HL + t ON = = -4 ns –too slow, try FAST TTL –t separation = t SH - t LH - t OFF + t HL + t ON = = 12.3 ns

Transmission Lines As speeds get faster, everything becomes analog If signal rise time < 2.5*wirelength/velocity, model as transmission line –signal velocity ~5 ns/m in PCB trace –example: T r = 50 ps => trace > 0.4 cm is transmission line –if rise time > 5*propagation delay, model wire as capacitor –NOTE: Clements terminology is confusing, use the rules here Model bus as transmission lines –model as distributed or lumped R, C, L elements –signal velocity is sqrt(LC) per length »typically 30-50% of light speed »can be ns/m in heavily-loaded bus Characteristic impedance Z o = sqrt(L/C) –step voltage on input sees impedance –V/Z o current flows into line

Reflections Current in line hits terminating resistance R T –can generate a reflecting voltage pulse –reflections can be a large fraction of voltage pulse –if R T = Z o, then no reflection - a matched impedance –if no termination, reflect full voltage pulse back Reflections at both ends –voltage at end point is series of steps –causes delay and noise Termination –try to terminate transmission line with matched impedance –problem: hard to know or control bus impedance –problem: multiple termination points

Terminations PCB has Z o ~ 100 ohms –but connecting 100 ohm resistor to V dd or Gnd reduces noise margin on bus Solution –split termination to V dd and Gnd –194 ohm equivalent impedance –causes ~30% voltage reflection Active termination –use voltage regulator with termination resistors Custom bus driver chips usually include internal termination But still big headache in high-speed systems –killed the DECsystem-20/80

Bus Design Solution 1 –allow time for reflections to die away »e.g. wait extra time after signals are “valid” –use matched impedance at ends of bus »use ~100 ohms for PCB wires –lightly load bus and avoid long stubs »stub is side path at T junction –problem: hard to do in big, high-speed design Solution 2 –buy off-the-shelf bus –explains popularity of standard motherboards