42
Lecture 23: I/O

Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline Basic I/O Pads I/O Channels –Transmission Lines –Noise and Interference

Embed Size (px)

Citation preview

Page 1: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

Lecture 23:

I/O

Page 2: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 2

Outline Basic I/O Pads I/O Channels

– Transmission Lines– Noise and Interference

High-Speed I/O– Transmitters – Receivers

Clock Recovery– Source-Synchronous– Mesochronous

Page 3: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 3

Input / Output Input/Output System functions

– Communicate between chip and external world– Drive large capacitance off chip– Operate at compatible voltage levels– Provide adequate bandwidth– Limit slew rates to control di/dt noise– Protect chip against electrostatic discharge– Use small number of pins (low cost)

Page 4: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 4

I/O Pad Design Pad types

– VDD / GND

– Output– Input– Bidirectional– Analog

Page 5: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 5

Output Pads Drive large off-chip loads (2 – 50 pF)

– With suitable rise/fall times– Requires chain of successively larger buffers

Guard rings to protect against latchup– Noise below GND injects charge into substrate– Large nMOS output transistor– p+ inner guard ring– n+ outer guard ring

• In n-well

Page 6: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 6

Input Pads Level conversion

– Higher or lower off-chip V– May need thick oxide gates

Noise filtering– Schmitt trigger

– Hysteresis changes VIH, VIL

Protection against electrostatic discharge

AY

VDDH

VDDLA Y

VDDL

A Y

weak

weak

A

Y

Page 7: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 7

ESD Protection Static electricity builds up on your body

– Shock delivered to a chip can fry thin gates– Must dissipate this energy in protection circuits

before it reaches the gates ESD protection circuits

– Current limiting resistor– Diode clamps

ESD testing– Human body model– Views human as charged capacitor

PADR

Diodeclamps

Thingate

oxides

Currentlimitingresistor

DeviceUnderTest

1500

100 pF

Page 8: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 8

Bidirectional Pads Combine input and output pad Need tristate driver on output

– Use enable signal to set direction– Optimized tristate avoids huge series transistors

PAD

Din

Dout

En

Dout

En Y

Dout

NAND

NOR

Page 9: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 9

Analog Pads Pass analog voltages directly in or out of chip

– No buffering– Protection circuits must not distort voltages

Page 10: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 10

MOSIS I/O Pad 1.6 m two-metal process

– Protection resistors– Protection diodes– Guard rings– Field oxide clamps

Out

En

Out

PAD

In

264 185

In_bIn_unbuffered

600/3

240

160

90

4020

48

Page 11: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 11

UofU I/O Pad 0.6 m three-metal process

– Similar I/O drivers– Big driver transistors

provide ESD protection– Guard rings around

driver

Out

En

Out

PAD

In

In_bIn_unbuffered

100

100

52

3030

52

Enb Enbuf

Enb

Enbuf

Driver drain diodes

Page 12: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 12

I/O Channels

I/O Channel: connection between chips– Low frequency: ideal equipotential net– High frequency: transmission line

Transmission lines model– Finite velocity of signal along wire– Characteristic impedance of wire

Page 13: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 13

When is a wire a T-Line?

When propagation delay along the wire is comparable to the edge rate of the signal propagating

Depends on– Length– Speed of light in the medium– Edge rate

Page 14: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 14

Example When must a 10 cm trace on a PCB be treated as a

transmission line

– FR4 epoxy has k = 4.35 ( = k0)

– Assume rise/fall times are ¼ of cycle time Signal propagation velocity

Wire flight time

Thus the wire should be treated as a transmission line when signals have a period < 2.8 ns (> 350 MHz)

8 ms cm

ns

3 10 14.4

2.0864.35

cv

cmns

10 cm0.7 ns

14.4 t

Page 15: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 15

Characteristic Impedance

Z0: ratio of voltage to current of a signal along the line

Depends on the geometry of the line

0

60 4ln

0.67 0.80.457 0.67

hZ

w tk

0

60 4ln

0.67 0.8

hZ

w tk

Microstrip: Outer layer of PCB

Stripline: Inner layer of PCB

Page 16: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 16

Example A 4-layer PCB contains power and ground planes on the inner

layers and signals on the outer layers. The board uses 1 oz copper (1.4 mils thick) and the FR4 dielectric is 8.7 mils thick. How wide should the traces be to achieve 50 characteristic impedance?

This is a microstrip design. Solve for w with – t = 1.4 mils– h = 8.7 mils – k = 4.35

– Z0 = 50 w = 15 mils

0

60 4ln

0.67 0.80.457 0.67

hZ

w tk

Page 17: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 17

Reflections When a wave hits the end of a transmission line,

part of the energy will reflect if the load impedance does not match the characteristic impedance.

Reflection coefficient:

A wave with an amplitude of Vreflected = Vincident returns along the line.

0

0

L

L

Z Z

Z Z

Page 18: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 18

Example: Reflections A strong driver with a

Thevenin equivalent resistance of 10 drives an unterminated transmission line with Z0 = 50 and flight time T. Plot the voltage at the 1/3 point and end of the line.

Reflection coefficients:

Initial wave: 50/(10+50) = 5/6 Observe ringing at load

10 50 2 50; 1

10 50 3 50S L

10 Z0 = 50

Thevenin Equivalent Driver

Unterminated Receiver

Vin VoutVmid01

0

1

Vin

5/6

0

1

Vmid

0

1

Vout

5/6

5/3

0 T 2T 3T 4T 5T 6T

5/6 5/6 -10/18 -10/18 20/54 20/54

5/3

20/18

10/18

70/54

7T 8T

-40/162 -40/162

10/18

50/54

70/54

130/162

170/162

130/162

Page 19: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 19

Intersymbol Interference

Must wait until reflections damp out before sending next bit

Otherwise, intersymbol interference will occur With an unterminated transmission line, minimum bit

time is equal to several round trips along the line

Page 20: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 20

Example: Load Termination Redo the previous example if

the load is terminated with a 50 resistor.

Reflection coefficients:

Initial wave: 50/(10+50) = 5/6 No ringing Power dissipation in load

resistor

10 Z0 = 50

Thevenin Equivalent Driver Receiver w/

Load Termination

Vin VoutVmid01

0

1

Vin

5/6

0

1

Vmid

0

1

Vout

5/6

0 T 2T 3T 4T 5T 6T

5/6

7T 8T

50

5/6

NoReflection

10 50 2 50 50; 0

10 50 3 50 50S L

Page 21: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 21

10 Z0 = 50

Thevenin Equivalent Driver

Unterminated Receiver

Vin VoutVmid01

0

1

Vin 1/2

0

1

Vmid

0

1

Vout

1/2

0 T 2T 3T 4T 5T 6T

1/2

7T 8T

NoReflection

40

1/2

Example: Source Termination Redo the previous example if

the source is terminated with an extra 40 resistor.

Reflection coefficients:

Initial wave: 50/(50+50) = 1/2 No ringing No power dissipation in load Taps along T-line

momentarily see invalid levels

50 50 500; 1

50 50 50S L

Page 22: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 22

Termination Summary For point-to-point links,

source terminate to save power

For multidrop busses, load terminate to ensure valid logic levels

For busses with multiple receivers and drivers, terminate at both ends of the line to prevent reflections from either end

Page 23: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 23

Noise and Interference Other sources of intersymbol

interference:– Dispersion

• Caused by nonzero line resistance

– Crosstalk• Capacitive or inductive coupling

between channels– Ground Bounce

• Nonzero return path impedance– Simultaneous Switching Noise

Page 24: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 24

High-Speed I/O

Transmit data faster than the flight time along the line Transmitters must generate very short pulses Receivers must be accurately synchronized to detect

the pulses

Page 25: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 25

High Speed Transmitters

How to handle termination?– High impedance current-mode driver + load term?– Or low-impedance driver + source termination

Single-ended vs. differential– Single-ended uses half the wires– Differential is Immune to common mode noise

Pull-only vs. Push-Pull– Pull-only has half the transistors– Push-pull uses less power for the same swing

Page 26: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 26

Pull-Only Push-Pull

Sing

le-En

ded

Diffe

ren

tial

High-Speed Transmitters

Gunning Transceiver Logic (GTL)

Current Mode Logic (CML)

Low-Voltage Differential Signalling (LVDS)

Page 27: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

AC Coupling

23: I/O 27

Page 28: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Programmable Drive Current

23: I/O 28

Page 29: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Slew Rate Control

23: I/O 29

Page 30: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

De-emphasizing Transmitter

23: I/O 30

Page 31: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Time Interleaved Transmitter

23: I/O 31

Page 32: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Multilevel Transmitter

23: I/O 32

Page 33: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 33

High-Speed Receivers

Sample data in the middle of the bit interval How do we know when?

Page 34: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 34

Source-Synchronous Clocking

Send clock with the data Flight times roughly match each other

– Transmit on falling edge of tclk– Receive on rising edge of rclk

Page 35: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 35

Single vs. Double Data Rate

In ordinary single data rate (SDR) system, clock switches twice as often as the data

If the system can handle this speed clock, the data is running at half the available bandwidth

In double-data-rate (DDR) transmit and receive on both edges of the clock

Page 36: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 36

Phase Alignment

If the DDR clock is aligned to the transmitted clock, it must be shifted by 90º before sampling

Use PLL

Page 37: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 37

Mesochronous Clocking

As speeds increase, it is difficult to keep clock and data aligned– Mismatches in trace lengths– Mismatches in propagation speeds– Different in clock vs. data drivers

Mesochronous: clock and data have same frequency but unknown phase– Use PLL/DLL to realign clock to each data

channel

Page 38: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.23: I/O 38

Phase Calibration Loop

Special phase detector compares clock & data phase

Page 39: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Hogge Detector

23: I/O 39

Page 40: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Alexander Detector

23: I/O 40

Page 41: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

TRNG Based on some random physical process

23: I/O 41

Page 42: Lecture 23: I/O. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 23: I/O2 Outline  Basic I/O Pads  I/O Channels –Transmission Lines –Noise and Interference

CMOS VLSI DesignCMOS VLSI Design 4th Ed.

Chip Identification The ID circuit must generate a binary ID code The ID code must be repeatable and reliable over

supply, temperature, aging, and thermal noise. The ID code length and stability must allow a high

probability of correct identification of each die. The ID circuit must exhibit low power consumption

and require no calibration.

23: I/O 42