Download document

Document related concepts
Transcript
ENG3640
Microcomputer Interfacing
Week #10
Busses & Transmission
Lines
Topics

Types of Busses





Synchronous Busses
Asynchronous Busses
Semi-Synchronous Busses
Bus Arbitration
Signals along Busses




Transmission Lines
Reflections & Distortions
How to solve the problem?
Bus Terminations
ENG3640 Fall 2012
2
Resources

Huang, Chapter 14, Sections



14.7 Waveforms of Bus Signals
Microcomputer Interfacing, By Harold
Stone, 1982 (Chapter II)
“High Speed Digital System Design”: A
Handbook of Interconnect Theory and
Design Practices, By S. Hall, G. Hall
and J. McCall, John Wiley & Sons, INC.
2000 (Chapters I, II)
ENG3640 Fall 2012
3
1-KB SRAM
68HC812A4
Block
Diagram
4-KB EEPROM
CPU12
Port AD
Analog to Digital
Port T
Timer Module
Port S
Serial
Communication
Busses act as the
computer skeleton
holding all its other
organs (functional
modules) together
I/O Ports
I/O Ports
ENG3640 Fall 2012
4
Definitions
Definition from “Microcomputer Busses”, by R.M. Cram, (Academic
Press, 1991).
A bus is a tool designed to interconnect the functional blocks of a microcomputer
in a systematic manner. It provides for standardization in mechanical form,
electrical specifications, and communication protocols between board-level
devices. Can extend definition to include the P as well
Processor-specific bus : a bus that is intended for use with only one processor
or with members of one family of compatible
processors.
Ex:
MC68HC12 Bus
Standardized processor-independent bus : a bus that is intended to promote
interchangeability among a class of board-level
products based on possibly different processors.
Ex:
PCI Bus
ENG3640 Fall 2012
5
CPU Bus I/O



CPU needs to talk with I/O
devices such as keyboard,
mouse, video, network, disk
drive, LEDs
Memorymapped I/O
 Devices are mapped to
specific memory locations
just like RAM
 Uses load/store instructions
just like accesses to
memory
Ported I/O (Isolated I/O)
 Special bus line and
instructions
Address
Data
CPU
Read
Write
Memory
I/O Device
Address
CPU
Data
Memory I/O
Read
Write
I/O Port
Memory
I/O Device
ENG3640 Fall 2012
6
Several types of Busses ….
CPU & Memory
ALU & Control
Slow Speed
High Speed
ENG3640 Fall 2012
7
A Functional Classification of Busses
1) Processor-Memory Busses
--- short, synchronous, high-speed
--- processor-specific; often proprietary
e.g. RAMBUS, VESA local bus
2) Input/Output (I/O) Busses and Instrument Busses
--- asynchronous or semi-synchronous
--- must accommodate a variety of data rates
--- open standards are used to maximize market
e.g. SCSI, GPIB(IEEE- 488), USB, Firewire
3) Backplane Busses
--- often midway in performance between processor-memory
busses and I/O/Instrument busses
--- standard busses are used to reduce design cost and to
reduce the time-to-market
e.g. VME, NuBus, PCI
Note: The distinctions between these three bus types are often
blurred.
ENG3640 Fall 2012
8
System Interfaces and Modularity
ENG3640 Fall 2012
9
Bus Properties


ENG3640 Fall 2012
Serialization:
 Only one component
can send a message
at any given time.
 There is a total order
of messages.
Broadcast:
 A Module can send a
message to several
other components
without an extra cost
10
Some Bus Terminology
Bus protocol : a set of allowed bus signal transition sequences and required
timing constraints.
Bus operation / transaction : a data transfer or control transfer operation that
takes place using bus signals according to a bus protocol.
Bus master : a subsystem connected to the bus that can determine the bus
operations. More than one bus master can be present on the
same bus, but only one bus master can have control (i.e. be
active) at a time.
e.g. multiple CPU’s, DMAC, Math Co-processor, DMA
Bus slave : a subsystem connected to the bus that responds to bus operations
initiated by the currently active bus master
e.g. RAM, Peripheral Chips
Bus arbitration : the process of determining which one of two or more
contending bus masters will be awarded control of the bus (and thereby
become the active bus master).
Arbiter : a circuit that performs arbitration May not be a separate chip,
but included in the CPU
Components of a Bus
Mechanical Layer
determines its cost but
has very little direct
influence on its
electrical performance
Mechanical
Protocol
determines how
the bus is driven
and how receiver
and transmitter
send/receive their
data
Electrical
characteristics
determines bus
drivers/receivers,
signal strength
Electrical
Protocol
ENG3640 Fall 2012
12
Bus Drivers & Receivers
- To drive the bus, a bus driver is needed. To receive data a bus receiver is needed.
- A bus driver and receiver have an enable signal to control its connection to the bus.
- The bus driver and bus receiver are often combined to form a bus transceiver.
Bus line
X1 drive enable
Device
X1
X4 drive enable
Device
X4
X1 receive enable
X2 drive enable
Device
X2
X4 receive enable
X5 drive enable
X2 receive enable
X3 drive enable
Device
X5
X5 receive enable
Device
X3
X3 receive enable
Figure 13.23 Multiple devices attached to the bus line
ENG3640 Fall 2012
13
Signal Groups within a Typical Bus
1. Data signals
-- encode the data that is passed between the bus master and bus slaves
-- number of data signals determines the “bit width” of the system
-- parity bits or other error detection and correction bits may
be included with each data word
2. Address signals
-- used to identify locations in memory, and registers in peripheral chips
68HC812A4 ?
21 wires, A0 - A20
-- number of address signals determines the maximum size of the memory
Note:
Some or all of the data and address signals may be
time-multiplexed on the same bus lines
ENG3640 Fall 2012
14
Signal Groups (con’t)
3. Control signals
--- used to co-ordinate bus transactions
R/W, strobes, enables
--- used to arbitrate among:
-- multiple possible bus masters
Bus conflict may lead to errors and damage of peripherals if two
or more modules attempt to use the bus simultaneously.
--- power failure handling
--- entry into and exit from test modes
4. Power signals
--- typically +5 VDC, +12 VDC, -12 VDC, +3.3 VDC
--- optionally -5 VDC
ENG3640 Fall 2012
15
Timing Terminology
Caution: terminology may vary slightly between vendors.
Double check by checking data sheets
Set-up time , tsu: the minimum length of time that a signal must be valid at a
circuit input before a second triggering signal arrives at a
second input.
Usually a clock
Delay time , tco: the length of time that a circuit requires for its output(s) to begin
to change in response to a triggering signal arriving at a second
input.
Hold time , tho:
the minimum length of time that a signal must be kept valid at a
circuit input after a triggering signal has been received at a
second input.
Timing skew , tskew: the maximum range of times over which a particular
signal transition can occur.
-- Due to variations in driver output resistance
-- Combinational logic takes a while to stabilize
Timing Diagram Notation
H
t
tsu
tho
L
H
L
Changing values
Stable Value, high or low
H
L
Clean transitions
H
L
tskew
Tristated
H
L
Stable, driven
High impedance
Changing values
Bus Protocols

Protocol refers to the set of rules agreed upon by both the bus master
and bus slave
 Synchronous bus transfers occur in relation to successive edges
of a clock
 Asynchronous bus transfers bear no particular timing relationship
 Semisynchronous bus Operations/control initiate asynchronously,
but data transfer occurs synchronously
Bus
CPU
Device 1
Device 2
ENG3640 Fall 2012
Device 3
18
Synchronous Bus Protocol


Are among the easiest to implement. Why?
Because the only control signal is a clock oscillator




The rising and falling edges of the clock signify, respectively the
beginning and end of the bus cycle.
Not only are synchronous protocols the least complex but
also lead to fastest transactions. Provided What?
Provided that the responding devices are fast enough to
operate at the bus clock speed.
Examples: ISA Bus (Industry Standard Architecture)
ENG3640 Fall 2012
19
Synchronous Bus Protocol


Transfer occurs in relation to successive edges of the system clock
Example:
 Memory address is placed on the address bus within a certain time, relative to the
rising edge of the clock
 By the trailing edge of this same clock pulse, the address information has had time
to stabilize, so the READ line is asserted
 Once the chip has been selected, then the memory can place the contents of the
specified location on the data bus
Clock
Address
stable
Instruction Addr
stable
Data Addr
decoding delay
Master (CPU) RD
Master (CPU) CS
Data
unstable stable
I-fetch
unstable stable
data
access time
ENG3640 Fall 2012
20
Asynchronous Bus Protocol



Handshaking signals are used to transfer information
from source to destination (fully interlocked).
The protocol is inherently slower than synchronous
protocol because of extra propagation delay.
The wide acceptance of the fully interlocked
asynchronous protocol is largely due to:
1.
2.

Reliability
General efficiency in dealing with devices that have a broad
range of response time.
When is it useful?

Useful for systems where CPU and I/O devices run at different
speeds
ENG3640 Fall 2012
21
Asynchronous Bus Protocol


No system clock used
Example:
1.
Master puts address and
data on the bus and then
raises the Master signal
2.
Slave sees master signal,
reads the data and then
raises the Slave signal
3.
Master sees Slave signal
and lowers Master
signal
4.
Slave sees Master signal
lowered and lowers
Slave signal
Address
Master
Slave
I see you
got it
there's
some
data
I’ve
got
it
I see you
see I got it
Data
write
read
We call this exchange “handshaking”
ENG3640 Fall 2012
22
Semi Synchronous Bus Protocol

Combines the advantage of synchronous and
asynchronous busses:



It basically uses two control signals
1.
2.



It has the speed of the synchronous bus
It has the versatility of an asynchronous bus
Clock from the Master
Wait signal from the Slave
For fast devices the bus is essentially a synchronous bus
controlled by the clock alone
If a device cannot respond in one clock cycle it raises a
wait signal and accordingly the master halts
Example: SCSI Bus
ENG3640 Fall 2012
23
Semi Synchronous Bus Protocol


If device cannot respond in one clock cycle it raises the
WAIT signal & master halts
When the slave can respond it drops WAIT & master
accepts the slave response using the timing of the
standard synchronous protocol.
ENG3640 Fall 2012
24
Synchronous vs. Asynchronous Buses

Compare max. bandwidth for a synchronous bus and an
asynchronous bus

Synchronous bus
1.
has clock cycle time of 50 ns
each transmission takes 1 clock cycle
Asynchronous bus (see timing diagram)
1.
requires 40 ns per handshake
2.


Find bandwidth for each bus when performing 4-byte
reads from a 200ns memory
ENG3640 Fall 2012
25
Comparison: Synchronous Bus
1.
2.
3.
4.

Send address to memory: 50 ns
Read memory: 200 ns
Send data to device: 50ns
Total: 300 ns
Max. bandwidth:
4 bytes/300ns = 13.3 MB/second
ENG3640 Fall 2012
26
Asynchronous Handshake Protocol
ReadReq
1
3
Data
2
2
4
6
4
Ack
5
7
DataRdy



ReadReq: Indicates a read request by CPU from memory
DataRdy: Indicates that data word is now ready on data lines
Ack: Used to acknowledge the ReadReq or DataRdy signal
of the other party
ENG3640 Fall 2012
27
Asynchronous Handshake Protocol
ReadReq
1
3
Data
2
2
4
6
4
Ack
5
7
DataRdy
1.
2.
3.
4.
5.
6.
7.
Memory sees ReadReq, reads address from data bus, raises Ack
I/O device sees Ack high, releases ReadReq and data lines
Memory sees ReadReq low, drops Ack to acknowledge ReadReq
When memory has data ready, it places data on the data lines and raises DataRdy
I/O devices sees DataRdy, reads data from the bus, signals that it has the data by
raising Ack
Memory sees the Ack signal, drops DataRdy, releases datalines
If DataRdy goes low, the I/O device drops Ack to indicate that transmission is over
ENG3640 Fall 2012
28
Comparison: Asynchronous Bus




Apparently much slower because each step of the
protocol takes 40 ns and memory access 200 ns
Notice that several steps are overlapped with
memory access time
Memory receives address at step 1
steps 2,3,4 can overlap with memory access
 Step 1: 40 ns
 Step 2,3,4: 3 x 40ns =120ns
 Steps 5,6,7: max(3 x 40ns = 120ns, 200ns)
 Total time: 40ns+120ns+200ns  360ns
 max. bandwidth 4bytes/360ns=11.1MB/second
ENG3640 Fall 2012
29
Bus Arbitration

Refers to how the busses are
controlled.




Single CPU, Memory, I/O
Multiple CPUs, or One CPU
and DMA
Bus Arbitration  when more
than one master wants to
control the bus simultaneously
Simple technique: Every
device connects to the bus
request line and the first one
there gets it
Bus
CPU
Device 1
Device 2
Device 3
Bus request line
ENG3640 Fall 2012
30
Bus Arbitration
Bus Grant

CPU

Scheme A:
Device  Bus Request Signal,
CPU  Bus Grant,
Device  Bus Grant Ack


Bus
What happens if multiple devices
want access to the bus?
Device 1
Device 2
Bus grant ack
Bus request line
Problem  Simultaneous Request?
Scheme B:
daisy chain the devices devices
further down the daisy chain pass
the request to the CPU device's
priority decreases further down the
daisy chain
ENG3640 Fall 2012
CPU
Request
Grant
Device 3
Bus
Device 1
Device 2
Device 3
31
Sharing a Bus Among Multiple Masters
Coarsest granularity
1. Exclusive Control
each bus master retains exclusive control of the bus for several bus
transactions.
2. Cycle Stealing
bus transactions from different bus masters are interleaved on an
ad hoc or strictly round-robin basis.
e.g. CPU, DMAC1, DMAC2,CPU
3. Split Transaction (Pipelined Bus)
read transactions are split into two transactions:
1) master sends read command & target address
2) slave sends a return packet containing data
the bus is available to be used by other masters during the
memory access time e.g. RAMBUS, Synchronous DRAMs
Finest granularity
Split Cycle Protocol

A read is split into two separate transactions:
1.
During the first transaction  bus master transmits an address to the
slave and then disconnects from the bus
2.
Other masters use the bus …
3.
Slave initiates the 2nd part of the split cycle by accessing the bus as a
master and transmitting data to other party which now responds as a
slave.
Address
MASTER
SLAVE
Data
Mater transmits
Bus Idle
Address to slave
ENG3640 Fall 2012
Slave transmits
Data to Master
33
Exclusive
Control
PROS
CONS
-- simplicity
-- software method
-- no special
hardware
-- coarse
granularity
Cycle
Stealing
-- fairer sharing
of the bus
Split
Transactions
-- high-speed buses
do not have to wait
for slowly
responding devices
-- bus time may not
be shared fairly or
efficiently
-- requires hardware support
-- however this
support is available
in most CPU’s
-- requires hardware support
on bus and in
affected devices
Summary: Bus Trade-Offs
Option
High Performance
Separate Data &
Address Busses
Wider is Faster
Data Width
e.g. 32, 64
Block Transfers
Transfer Size
using DMA
Multiple masters
Bus Masters
(requires arbitration)
Split Transactions? Yes, to get more pipelining
1) Bus Sharing
2)
3)
4)
5)
6) Clocking
Synch. With
matched elements
ENG3640 Fall 2012
Low Cost
Multiplexed
Data & Address
Narrower is < $
e.g. 16, 8
Single word using
CPU
One master,
the CPU, no arbit.
No, too complex
Asynchronous,
semi-synch.
35
Busses as Transmission
Lines
Introduction:

Designers of electronic circuits, normally make the
simplifying assumption that signal propagation over
conductors is instantaneous and that the received
signal is a faithful replica of the transmitted signal
Is this a valid assumption?

We need to understand how signals propagate on
wires and learn the type of distortions that might
occur as:
 Frequency of operation increases
 Wire length increases
ENG3640 Fall 2012
37
Transmission Line Concept
Power Frequency (f) is @ 60 Hz
Wavelength (l) is 5
106 m
( Over 3,100 Miles)
Power
Plant
Consumer
Home
General transmission line: a closed
system in which power is transmitted
from a source to a destination

ENG3640 Fall 2012
38
PC Transmission Lines
Signal Frequency (f) is
approaching 10 GHz
Wavelength (l) is 1.5 cm
( 0.6 inches)
Microstrip
Integrated Circuit
Stripline
T
PCB substrate
Cross section view taken here
Stripline
W
Cross Section of Above PCB
Copper Trace
Via
FR4 Dielectric
MicroStrip
Signal (microstrip)
T
Ground/Power
Signal (stripline)
Signal (stripline)
Ground/Power
Copper Plane
Signal (microstrip)
W
ENG3640 Fall 2012
39
Transmission Line “Definition”

A two conductor wire system with the wires in close
proximity, providing relative impedance, velocity and closed
current return path to the source.

Characteristic impedance is the ratio of the voltage and
current waves at any one position on the transmission line
V
Z0 
I

Propagation velocity is the speed with which signals are
transmitted through the transmission line in its surrounding
medium.
v
c
r
ENG3640 Fall 2012
Speed of Light
Permitivity
40
Wire Delay

t
Signal Transmission:
 Signal wave-front moves close
to the speed of light (~1ft/ns)
 Time from source to
destination is called the
“transit time”.
 In ICs most wires are short,
and the transit times are
relatively short compared to
the clock period.
 But, long wires on PCB
 Busses
 Global Control signals
 Clock
x
ENG3640 Fall 2012
41
Reflections and Distortion on Busses
ENG3640 Fall 2012
42
Reflections: Example
ENG3640 Fall 2012
43
Considering Transmission Line Effects


Question: When are transmission line effects important?
Answer: When the wavelength is comparable to the size
of the circuit.
ENG3640 Fall 2012
44
Introduction: (Facts)

In high-speed circuits, transmission line effects tend to
distort signals on paths that are long compared to
the wavelength of the signals propagating on the paths.
1.
2.
At 100 MHz, wires only a few centimeters long show
nonnegligible transmission line effects.
For 50 to 60 Hz, the effects are unnoticeable in ordinary wiring,
but become visible on power transmission lines that run a few
hundred kilometers.
ENG3640 Fall 2012
45
Examples of Transmission Line
Structures- I

Cables and wires
(a) Coax cable
(b) Wire over ground
(c) Tri-lead wire
(d) Twisted pair (two-wire line)

Long distance interconnects
+
+
-
-
(a)
-
+
(c)
-
+
ENG3640 Fall 2012
(d)
-
(b)
46
Speed of Signals along Busses


Transfer time for a high speed signal in a wire is
controlled by the movement of electrons
Movement of Electrons?


Wires have:




Slows due to impedance of the wire.
Resistance
Capacitance
Inductance
To reason about wires we create models




Ideal
Lumped R, C
Lumped L, R, or C
…..
ENG3640 Fall 2012
47
Resistance of wires


Most real wires have resistance
Depends on




Material
Length
Cross Section
What does it cause?
 Delay
 Loss (power consumption)
ENG3640 Fall 2012
48
Capacitance of wires


Real wires have

Resistance

Capacitance
Causes?

Delay.

Loss.

Attenuation.
Electric Field
i = C dv/dt
ENG3640 Fall 2012
49
Inductance of Wires

Real wires have

Resistance
Capacitance

Inductance

Magnetic Field
V = L di/dt
Impact of inductance on supply voltages:
 Change in current induces a change in voltage
 Longer supply lines have larger L
ENG3640 Fall 2012
50
Presence of Electric and Magnetic Fields
I
+
+
+ +
E
V
I

-
-
V
I
H
I + DI
V + DV
I + DI
These fields are perpendicular to each other and to the direction of wave
propagation.
Electric field is established by a potential difference between
two conductors.


-
V + DV
I + DI
H
I
Both Electric and Magnetic fields are present in the
transmission lines


-
I + DI
Implies equivalent circuit model must contain capacitor.
Magnetic field induced by current flowing on the line

Implies equivalent circuit model must contain inductor.
ENG3640 Fall 2012
Transmission Line Models


One way of dealing with transmission lines is to
model it in terms of R and C
Impedance of line  1/(1+jwRC)


This is also a low pass filter circuit
What is affected?


cutoff frequency fc = 1/(2 pi RC),
rise time tr = 2.2 RC
VA
t0
ENG3640 Fall 2012
t1
52
Wire Delay: RC Model
More realistic view:
 Wires posses distributed
network of resistance and
capacitance

v1
v2
v3

v4

For short wires on ICs, resistance is
insignificant (relative to effective R of
transistors), but C is important.
 Typically around half of C of gate
load is in the wires.
For long wires on ICs: busses, clock
lines, global control signal, etc.


Time constant associated with
distributed RC is proportional to
the square of the wire length
signals are typically “rebuffered” to
reduce delay:
v1
v2
v3
v4
time
ENG3640 Fall 2012
53
Transmission Line Models




However, longer lines cannot be simply described
in terms of simple RC models especially when
operating at higher frequencies
A more complex model can be adopted (RLC)
Normally series resistance is small and
conductance is very large so we can simplify the
model
Impedance of Capacitor? Inductor?

With Low frequency ZC = 1/jwc, ZL = jwL
so, C  open, L  short, (posing no problem)
ENG3640 Fall 2012
54
Transmission Line Models

When can the R and G terms be ignored in the Z0?


As w increases, the impact of R and G decreases.
When the frequency increases above 100 kHz, the terms
multiplied by w start to dominate.
Impedances of line remains
same regardless of line length
ENG3640 Fall 2012
55
Signals along a conductor
ENG3640 Fall 2012
56
Reflection
ENG3640 Fall 2012
57
Reflection Coefficient

Wires have R, C, L


We therefore have to model wires (busses) as transmission
lines that have an impedance Z0
When we send a signal across a wire the signal will
usually reflect off the end of the line depending on
the termination impedance ZT



Vr  Reflected Voltage
Vi  Incident Voltage
Z0  Transmission Line impedance
Reflection Coefficient
ENG3640 Fall 2012
58
Reflection Coefficient @ Src & Dest


The voltage reflection
coefficient at the source is
The voltage reflection
coefficient at the load is
ENG3640 Fall 2012
59
Reflections Coefficient -- Characteristics

1.
Three cases
ZT = Z0
P = 0 (No Reflection)
2.
ZT = 0 (short at the load)
P = -1 (Reflection of equal magnitude but opposite polarity)
3.
ZT = inf (open load)
p = +1 (Reflection of equal magnitude and same polarity)

THE END OF A TRANSMISSION LINE IS SAID TO BE
MATCHED IF IT IS TERMINATED WITH ITS
CHARACTERISTIC IMPEDANCE (CASE #1)
Ir
Z0
Vi
Ii
T
ZT
IT
ENG3640 Fall 2012
T
60
Special Cases to Remember
A: Terminated in Zo
Zs
Zo
Vs
Zo
r  Zo Zo  0
Zo + Zo
B: Short Circuit
Zs
Zo
Vs
r  0 Zo  -1
0 + Zo
C: Open Circuit
Zs
Vs
Zo
ENG3640 Fall 2012
r
 - Zo
1
 + Zo
61
Solving Transmission Line Problems
We need to establish a procedure that will allow us to solve
transmission line problems. Here are the steps:
1.
2.
3.
Determination of launch voltage & final “DC” or “t =0”
voltage
Calculation of load reflection coefficient and voltage
delivered to the load
Calculation of source reflection coefficient and resultant
source voltage
These are the steps for solving
all t-line problems.
ENG3640 Fall 2012
62
Determining Launch Voltage
TD
Vs
0
Rs A
B
Zo
Vs
Rt
(initial voltage)
t=0, V=Vi
Vi = VS
Z0
Z0 + RS
Vf = VS
Rt
Rt + RS
Step 1 in calculating transmission line waveforms is to
determine the launch voltage in the circuit.

The behavior of transmission lines makes it easy to
calculate the launch & final voltages – it is simply a
voltage divider!
ENG3640 Fall 2012
63
Voltage Delivered to the Load
TD
Vs
Rs A
Zo
Vs
0
B
Rt
(initial voltage)
t=0, V=Vi
rB 
t=2TD,
rA(rB)(Vi )
V=Vi
- +Zo
Rt+ rB(Vi)
Rt + Zo
(signal is reflected)
t=TD, V=Vi +rB(Vi )
Vreflected = rB (Vincident)
VB = Vincident + Vreflected
Step 2: Determine VB in the circuit at time t = TD

The transient behavior of transmission line delays the
arrival of launched voltage until time t = TD.


VB at time 0 < t < TD is at quiescent voltage (0 in this case)
Voltage wavefront will be reflected at the end of the t-line

VB = Vincident + Vreflected at time t = TD
ENG3640 Fall 2012
64
Voltage Reflected Back to the Source
Vs
0
Rs A
Vs
B
rA
Zo
rB Rt
TD
(initial voltage)
t=0, V=Vi
(signal is reflected)
t=2TD,
V=Vi + rB (Vi) + rA(r B )(Vi )
ENG3640 Fall 2012
t=TD, V=Vi + rB (Vi )
65
Voltage Reflected Back to the Source
rA
- Zo
Rs

Rs + Zo
Vreflected = rA (Vincident)
VA = Vlaunch + Vincident + Vreflected
Step 3: Determine VA in the circuit at time t = 2TD

The transient behavior of transmission line delays the
arrival of voltage reflected from the load until time t =
2TD.


VA at time 0 < t < 2TD is at launch voltage
Voltage wavefront will be reflected at the source

VA = Vlaunch + Vincident + Vreflected at time t = 2TD
ENG3640 Fall 2012
66
Reflections: Example
ENG3640 Fall 2012
67
Lattice Diagram Analysis – Key Concepts
The lattice diagram is a
tool/technique to simplify
the accounting of
reflections and waveforms




Diagram shows the
boundaries (x =0 and x=l)
and the reflection
coefficients
Time (in T) axis shown
vertically
Calculate voltage amplitude
for each successive
reflected wave
Total voltage at any point is
the sum of all the waves
that have reached that point
ENG3640 Fall 2012
Vs
0
Vs
Zo
V(source)
Rs
TD = N ps
V(load)
Time V(source)
N ps
Rt
rload
rsource
0
V(load)
a
A
b
A’
2N ps
3N ps
c
B
d
4N ps
B’
e
5N ps
68
Lattice Diagram Analysis – Detail
r
r
source
V(load)
V(source)
0
load
Vlaunch
0
Time
Vlaunch
N ps
Vlaunch rload
Vlaunch(1+rload)
2N ps
Time
Vlaunch rloadrsource
Vlaunch(1+rload +rload rsource)
3N ps
Vlaunch r2loadrsource
Vlaunch(1+rload+r2loadrsource+ r2loadr2source)
4N ps
Vlaunch r2loadr2source
0
V(load)
V(source) Zo
Vs
Rs
TD = N ps
Vs
Rt
5N ps
ENG3640 Fall 2012
69
Transient Analysis – Over Damped
2v
0
Vs
Zo
V(source)
Zs
TD = 250 ps
r source  0 . 2
r load  1
V(load)
Time V(source)
0
Assume Zs=75 ohms
Zo=50ohms
Vs=0-2 volts
V(load)
0.8v
Vinitial  Vs
r source 
0v
500 ps
rload 
0.8v
0.8v
1000 ps
Zo
 50 
 (2)
  0.8
Zs + Zo
75
+
50


Zs - Zo 75 - 50

 0.2
Zs + Zo 75 + 50
Zl - Zo  - 50

1
Zl + Zo  + 50
1.6v
Response fr om lattice diagram
0.16v
2.5
1500 ps 1.76v
2
2000 ps
1.92v
0.032v
V olt s
0.16v
1.5
Sour ce
1
Load
0.5
0
2500 ps
0
2 50
500
750
1000
1250
Tim e , ps
ENG3640 Fall 2012
70
Transient Analysis – Under Damped
V(source)
2v
0
Zo
Zs
TD = 250 ps
Vs
rsource  -0 . 3333
Time
Assume Zs=25 ohms
Zo =50ohms
Vs=0-2 volts
V(load)
V(load)
V(source)
0
rload  1
1.33v
0v
500 ps 1.33v
Vinitial Vs
 50 
Zo
 (2) 
÷ 1.3333
+
+
Zs Zo
 25 50 
rsource  Zs Zo  25 50  -0.33333
Zs + Zo
 -50
rload  Zl Zo 
1
Zl + Zo
1.33v
2.66v
1000 ps
 + 50
Response from lattice diagram
-0.443v
3
1500 ps 2.22v
-0.443v
Volts
2.5
1.77v
2000 ps
25 + 50
2
1.5
0.148v
Source
1
0.5
2500 ps
1.92
Load
0
0.148v
0
250
500
750 1000 1250 1500 1750 2000 2250
Time, ps
2.07
ENG3640 Fall 2012
71
What Should Designer do?

1.
2.
Practically there are several ways to mitigate the negative
impact of reflections:
Wait long enough after each signal transition for the reflection on
the line to die out (OK for low speed but not high speed systems)
Decrease the frequency of the system so that reflections
reach steady state before another signal is driven onto the line (Low
Speed Sys!)
3.
Shorten the Bus or (PCB trace) so that reflections will reach
steady state in a shorter time (not practical or sometimes impossible!)
4.
Terminate the transmission line with an impedance equal to
the characteristic impedance of the line:

Use a matched termination at far end. Thereby producing
no reflections on the line

Use a matched termination at source end absorbing the
wave reflected from the far end.
ENG3640 Fall 2012
72
Matched Termination
Z0
Z0
ZL
Series Source Termination
ZS
Z0
Z0
Parallel Destination Termination
ENG3640 Fall 2012
73
Terminating the Bus
To reduce reflections, the ends of a transmission line
should be terminated by connecting a resistor equal to Z0
across the line



Connecting a resistor between the bus and VCC will pullup the
lower logic level and reduce noise immunity
Classic Solution: connect two resistors to the bus one to
the ground and one to VCC  R1//R2 = Z0
RT = R1//R2 = Z0
RT
VT
ENG3640 Fall 2012
Bus
74
When does a T-line become a T-Line?
 Whether it is a
bump or a
mountain depends
on the ratio of its
size (tline) to the
size of the vehicle
(signal
wavelength)
When do we need to
use transmission line
analysis techniques vs.
lumped circuit
analysis?
 Similarly, whether or
Wavelength/edge rate
ENG3640 Fall 2012
Tline
not a line is to be
considered as a
transmission line
depends on the
ratio of length of the
line (delay) to the
wavelength of the
applied frequency or
the rise/fall edge of
the signal
75
Considering Transmission Line Effects

Rule of Thumb: Apply TLT


In any system in which rise time of the signal is shorter than twice its propagation
time
i.e. if ratio of rise time/prop delay < 0.5
Example #1

Prop delay per meter is 5 ns

Rise time is 2ns

Signal path length is 4 cm
Answer:

2ns /(5ns/m x 4/100) = 10  neglect TLT

Example #2



Prop delay per meter is 20 ns
Rise time is 2ns
Signal path length is 50 cm
Answer
2ns/(20ns/m x 50/100) = 0.25  apply TLT
ENG3640 Fall 2012
76
Summary


Buses are very important components in any digital
system.
Three types of busses can be used:




You have to treat interconnections between
components as transmission lines if:



Synchronous
Asynchronous
Semi-Synchronous
High speed > 100 MHz
Long connections are used
As engineers you have to make sure that the
busses are terminated correctly to match the
impedance of the lines, thus no reflection or
distortion will be encountered.
ENG3640 Fall 2012
77
ENG3640 Fall 2012
78
Bus Hardware
Principles to access the bus (using bus transceivers)



Bus Transmit: ET Active
Bus Receive: ER Active
ENG3640 Fall 2012
79
Basics of Bus Signals
- A bus line is simply a conductor.
- The voltage level of a bus line is determined by the device that drives it.
- For this reason, a bus line is often called passive.
- A bus line can be made active by adding a pull-up device.
- A simple pull-up device could be a resistor, a pnp-transistor, or a PMOS transistor.
- In an active bus, the bus voltage will be low only when one or more devices attached
to the bus apply a low voltage to the bus.
- When no device drives the bus, the bus voltage will be pulled to high (VDD).
VDD
VDD
PNP
transistor
RP
(a)
VDD
(b)
PMO
S
(c)
Figure 13.22 Pull-up devices for bus line
ENG3640 Fall 2012
80
The Dumb Bus: ISA & EISA
ENG3640 Fall 2012
81
The Dumb Bus: ISA & EISA
ENG3640 Fall 2012
82
Bus Types

PCI = Peripheral Component Interconnect (McIntosh)

VESA = Video Electronics Standards Association

MCA = MicroChannel Architecture (IBM PS/2)

EISA = Extended Industry Standard Architecture

ISA = Industry Standard Architecture

(ISA is 16 bit (binary digit). The others are 32 and 16 bit)
ENG3640 Fall 2012
83
Traveling Around the Computer
So, how does ‘data’ (in all of its various forms and
meanings) get around the various devices ?
No problem
It takes a bus
So, what is a bus ?
It is an electronic path in a computer system which
transmits bits - the binary digits which represents the
atomic values of data
ENG3640 Fall 2012
84
68HC12 Memory Bus for 2x1M ROMS
ENG3640 Fall 2012
85
Type of Buses
There are a number of different varieties of ‘buses’
1.
2.
The Internal Bus - its function is to move data around the CPU chip
Data Buses - their function is

3.
Local buses - a special bus (or buses) which

4.
link peripherals requiring fast response times (display, disk, high speed
local networks) (GUI’s, Multimedia, scanners - all have high bit loads
and require fast traffic lanes)
Expansion Bus – its function is

5.
to link the CPU and RAM
to extend the data bus and to establish links with peripherals
Universal Serial Bus - capability of linking many devices to a single
or common port (such as the Zip drive, pluggable hard disk, CDRom)
ENG3640 Fall 2012
86
Typical PC System Architecture
ENG3640 Fall 2012
87
Recall ENG241: Flip-Flop Timing


Setup time – time that D must be
available before clock edge
Hold time – time that D must be
stable after clock edge
ENG3640 Fall 2012
88
Propagation Delay

Propagation delay – time after edge when
output is available
ENG3640 Fall 2012
89
Clock Skew

Unequal delay in distribution of the clock signal to various parts of a circuit:
 if not accounted for, can lead to erroneous behavior.
 Comes about because:
 clock wires have delay,
 circuit is designed with a different number of clock buffers from the
clock source to the various clock loads, or
 buffers have unequal delay.
 All synchronous circuits experience some clock skew:
 more of an issue for high-performance designs operating with very
little extra time per clock cycle.
clock skew, delay in distribution
ENG3640 Fall 2012
90
Hierarchies of Busses

To exploit the strengths (and avoid the weaknesses) of different kinds
of busses, high performance systems often use a hierarchy of busses
Example: High-Performance Personal Computer
CPU
Cache
Controller
PCI
Controller
Cache
Memory
Local CPU / Memory Bus
DRAM
Co-processor
Peripheral Component Interconnect Bus
EISA/PCI Bridge
Controller
Hard Drive
Controller
Video
Adaptor
SCSI
Adaptor
EISA PC Bus
SCSI
Bus
PC Card 1
PC Card 2
PC Card 3
ENG3640 Fall 2012
91
Arbitration Among Contending
Masters
1. Fixed Priority
--- each bus master is assigned a unique priority
--- contending master with highest priority is
awarded control of the bus
2. Rotating Priority
--- at any one time, each bus master has a unique
priority
--- the priority assignments are periodically
rotated so that each bus master takes a turn
at having each of the available priorities
A,B,C,D
B,C,D,A
C,D,A,B
3. Pseudo-random Selection
--- the winning bus master is selected randomly
from among the currently contending masters
ENG3640 Fall 2012
92
How to settle errors
ENG3640 Fall 2012
93
Summary: Transmission Line Effects
Transmission-line considerations can generally be
ignored in the design of logic circuit that have clock
rates from 1 to 10 MHz for paths confined to one PCB.


There are however noticeable transmission line
effects where signals are bused from board to board,
and severe effects where signals move from chassis to
chassis.

Very high speed equipment that runs with clock rates from 50
MHz to 1GHz and above must normally treat even those signal
lines confined to one circuit board as transmission lines, except
possibly for very short lines.
ENG3640 Fall 2012
94
Reflections Coefficient
Consider incident voltage and current: Vi, Ii and reflected voltage,
current ; Vr, Ir

At any point along the line Z0 = Vi/Ii,  Ii = Vi/Z0

At termination we have

VL =Vi + Vr,
IL = Ii – Ir (negative sign is due to reverse direction of reflected current)


Vr = pVi and Ir = pIi

Substituting we have

ZL = VL/IL= (Vi+pVi)/(Ii-pIi)

ZL = (Vi + pVi) / ((Vi /Z0) – p(Vi/Z0))
Solve the above for p  (ZL – Z0)/(ZL + Z0)


Ir
Z0
Vi
Ii
ZL
ENG3640 Fall 2012
IL
95
View of Busses
ENG3640 Fall 2012
96
Ramp into Source Matched T- line

Ramp function is step function
with finite rise time as shown in
the graph.





The amplitude is 0 before time t0
At time t0 , it rises with straightline with slope
At time t1 , it reaches final
amplitude VA
Thus, the rise time (TR) is equal
to t1 - t0 .
The edge rate (or slew rate) is
 VA /(t1 - t0 )
I1
RS
l
V1
VS
V2
T = T0 l
VA
t0
ENG3640 Fall 2012
Z0 ,T0
I2
t1
97
Example of Reflections
ENG3640 Fall 2012
98
T Line Rules of Thumb
So, what are the rules of thumb to use?
May treat as lumped Capacitance
Use this 10:1 ratio for accurate modeling
of transmission lines
Td < .1 Tx
May treat as RC on-chip, and treat as LC
for PC board interconnect
Td < .4 Tx
ENG3640 Fall 2012
99
Example of Reflections
ENG3640 Fall 2012
100
E & M Fields – Microstrip Case
Signal path
Y
Z (into the page)
X
Electric field
Magnetic field
Ground return path
The signal is really the wave
propagating between the
conductors
ENG3640 Fall 2012
101
Voltage Divider Circuit


Consider the simple
circuit that contains
source voltage VS,
source resistance
RS, and resistive
load RL.
RS
RL
VS
The output voltage,
VL is easily
calculated from the
source amplitude
and the values of
the two series
resistors.
VL = VS
ENG3640 Fall 2012
VL
RL
RL + RS
102