Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... –...

21
TLCE - B7 29/09/2009 © 2007 DDC 1 29/09/2009 - 1 TLCE - B7 - © 2007 DDC Politecnico di Torino ICT School Telecommunication Electronics B7 – PLL digital applications » PSK demodulation » Clock resynchronization » Clock/data recovery (CDR) TLCE - B7 29/09/2009 © 2007 DDC 2 29/09/2009 - 2 TLCE - B7 - © 2007 DDC Lesson B7: PLL digital applications Clock synchronization – Clock multipliers – Resynchronization with DLL Clock-data recovery (CDR) – Self-synchronizing serial transmission and embedded clock PSK demodulator – Lock of phase-modulated signals • References – Synchronizers and clock/data recovery sect. 3.7.3 – Clock multiplier and resynchronizers sect. 3.7.6

Transcript of Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... –...

Page 1: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 1

29/09/2009 - 1 TLCE - B7 - © 2007 DDC

Politecnico di TorinoICT School

Telecommunication Electronics

B7 – PLL digital applications

» PSK demodulation

» Clock resynchronization

» Clock/data recovery (CDR)

TLCE - B7 29/09/2009

© 2007 DDC 2

29/09/2009 - 2 TLCE - B7 - © 2007 DDC

Lesson B7: PLL digital applications

• Clock synchronization– Clock multipliers

– Resynchronization with DLL

• Clock-data recovery (CDR)– Self-synchronizing serial transmission and embedded clock

• PSK demodulator– Lock of phase-modulated signals

• References – Synchronizers and clock/data recovery sect. 3.7.3

– Clock multiplier and resynchronizers sect. 3.7.6

Page 2: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 3

29/09/2009 - 3 TLCE - B7 - © 2007 DDC

High speed digital systems

• Problems for distribution of fast clocks– Clock signal reaches various areas with different delays

– Data from various areas exhibit skew

– Possibility of synchronization errors (metastability)

• Limited extension of synchronous areas– Local fast clock (chip level)

– Slower global clock (Board)

• How to keep various areas synchronized?– Single global clock

– Local frequency multiplication

– Local resynchronization

TLCE - B7 29/09/2009

© 2007 DDC 4

29/09/2009 - 4 TLCE - B7 - © 2007 DDC

Clock multipliers

• Unique timing reference for various ICs

• Complex systems need clocks at various frequencies, with

– Known phase relation

– Time margins for data setup and hold

• PLL clock multipliers– Integer synthesizers

– On-chip clock frequency change capability» Performance and power consumption control

– Fast clocks confined within single ICs

Page 3: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 5

29/09/2009 - 5 TLCE - B7 - © 2007 DDC

Clock multiplier

• PLL Synthesizer: FCKI = N * FCKE

Clock to interface registers

Clock to internalregisters(FCKI)

ExternalClock(FCKE)

TLCE - B7 29/09/2009

© 2007 DDC 6

29/09/2009 - 6 TLCE - B7 - © 2007 DDC

Clock skew

• The different delays of clock distribution trees causes significant skew between output data

Q2

Q1

Page 4: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 7

29/09/2009 - 7 TLCE - B7 - © 2007 DDC

Effects of clock skew

• Due to skew, output data become valid at different times

• The delay skew limits the clock rate (min. clock period)

• Upper bound for the speed of circuits which use these data

TLCE - B7 29/09/2009

© 2007 DDC 8

29/09/2009 - 8 TLCE - B7 - © 2007 DDC

Clock resynchronization

• In each circuit, the PD compares external (CKE) and terminal-internal (CKI) clock edge positions

• The internal clock phase is adjusted to compensate for the clock distribution three delay

• CKE and CKI are synchronized

Page 5: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 9

29/09/2009 - 9 TLCE - B7 - © 2007 DDC

Resynchronized outputs

• Driving the clock tree through the PLL, the switching time of output registers are synchronized with external clock, independently from internal clock delay

TLCE - B7 29/09/2009

© 2007 DDC 10

29/09/2009 - 10 TLCE - B7 - © 2007 DDC

Resynchronization with DLL

• No need for VCO, only phase adjustment

• The circuit is a Delay Lock Loop (DLL)

delay

Page 6: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 11

29/09/2009 - 11 TLCE - B7 - © 2007 DDC

Lesson B7: PLL digital applications

• Clock synchronization– Clock multipliers

– Resynchronization with DLL

• Clock-data recovery (CDR)– Self-synchronizing serial transmission

– Embedded clock

• PSK demodulator– Example of embedded clock

– Lock of phase-modulated signals

TLCE - B7 29/09/2009

© 2007 DDC 12

29/09/2009 - 12 TLCE - B7 - © 2007 DDC

Clock-data synchronization

• When data and clock use two separate channels (wire, track, …), the different delays cause skew

– The skew modifies timing relations

– May cause violation of timing constraints (setup and hold)

– The skew is the actual limit to data rate

• Solutions– Reduce and match delays

» Matched lines. meanders, ..

– Carry clock and date on the same wire» Clock embedding

» Self-synchronizing codes and Clock-Data Recovery

» Needs clock/data separation at destination

Page 7: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 13

29/09/2009 - 13 TLCE - B7 - © 2007 DDC

Embedded clock

• The timing information (clock) is mixed with data – Edges carry timing information

• Goal: guarantee maximum edge interval– Specific modulation at bit level (symbols)

– Encoding techniques (maximum edge interval)

– Increased number of edges wider bandwidth

• Examples – Manchester encoding

– Synchronous modulations

– BxBy encoding

– Bit stuffing

– Synchronous protocols

TLCE - B7 29/09/2009

© 2007 DDC 14

29/09/2009 - 14 TLCE - B7 - © 2007 DDC

Manchester encoding

• Phase modulation (phase steps )– Symbol for 0: H L transition

– Symbol for 1: L H transition

– At least one edge in each bit slot

– Bandwidth: max 2 edges/bit, Fmax = BitRate

• Variations– MFM

– M2FM: Manchester :2

Page 8: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 15

29/09/2009 - 15 TLCE - B7 - © 2007 DDC

MFM and M2FM codes

• MFM– Related with the bit sequence

– 0: state change at Tbit end

– 1: isolated: no changesequence: change in the middle of Tbit

• M2FM– Manchester :2

– Same information

– Reduced bandwidth: 1 transition/bit

– More complex decoder

TLCE - B7 29/09/2009

© 2007 DDC 16

29/09/2009 - 16 TLCE - B7 - © 2007 DDC

Summary of Manchester codes

Page 9: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 17

29/09/2009 - 17 TLCE - B7 - © 2007 DDC

Spectrum of various codes

• More edges more bandwitdh occupation

MFM

TLCE - B7 29/09/2009

© 2007 DDC 18

29/09/2009 - 18 TLCE - B7 - © 2007 DDC

Synchronous modulations

• Integer number of carrier period in each bit slot

• Synchronous demodulation requres carrier recovery

• Clock can be derived from carrier

• Examples:

– ASK/PAM (with residual carrier)

– PSK (with phase shift at fixed positions in the period)

– FSK (with integer number of carrier periods/bit)

Page 10: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 19

29/09/2009 - 19 TLCE - B7 - © 2007 DDC

BxBy encoding

• X-bit block replaced by a Y-bit block (with Y>X)– The new block guarantees

» A minimum number of edges

» DC level = 0 (or almost 0)

» Reserved codes for commands/controls

– Can be encoded NRZ (better bandwidth usage)

– Increased bandwidth (same % as bit number increment)

• Most used– 4B5B

– 8B10B

– 64B66B

TLCE - B7 29/09/2009

© 2007 DDC 20

29/09/2009 - 20 TLCE - B7 - © 2007 DDC

Example B4B5

• From 4-bit codes (16) to 5-bit codes (32)

• Redundancy used for:

– New edges

– DC removal

– control characters

11000: start 110001: start 200100: halt… 011110111

011100110

010110101

010100100

101010011

101000010

010010001

111100000

111011111

111001110

110111101

110101100

101111011

101101010

100111001

100101000

Page 11: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 21

29/09/2009 - 21 TLCE - B7 - © 2007 DDC

Clock recovery

• Clock generator synchronized by signal edges– Requires minimum transition rate

TLCE - B7 29/09/2009

© 2007 DDC 22

29/09/2009 - 22 TLCE - B7 - © 2007 DDC

Clock recovery circuit

• The clock oscillator can use a PLL

• The signal must have an adequate rate of transitions (edges), using

– bit stuffing or coding (e.g. 8B10B)

– Modulation (e.g. PSK 180°)

Page 12: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 23

29/09/2009 - 23 TLCE - B7 - © 2007 DDC

Data resynchronization: Altera

• Mercury EPLD– PLL multiphase clock generator (8)

– Interpolation between cklocks (1/56 Tck)

TLCE - B7 29/09/2009

© 2007 DDC 24

29/09/2009 - 24 TLCE - B7 - © 2007 DDC

Clock/Data recovery example

• Altera Stratix (3 Gb/s)

Page 13: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 25

29/09/2009 - 25 TLCE - B7 - © 2007 DDC

Data resynchronization: Xilinx

• Two-phase clock generator, multiphase sampling

TLCE - B7 29/09/2009

© 2007 DDC 26

29/09/2009 - 26 TLCE - B7 - © 2007 DDC

Data/clock recovery

• Multiphase sampling with resynchronization– Shift in the time domain without risk of metastability

Page 14: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 27

29/09/2009 - 27 TLCE - B7 - © 2007 DDC

Data/clock recovery

• Analysis of data transition position

TLCE - B7 29/09/2009

© 2007 DDC 28

29/09/2009 - 28 TLCE - B7 - © 2007 DDC

Data/clock recovery

• Select the correct-phase clock

– Similar to a clock-waveform correlator

– A standard correletor requirex faster clock (x 4)

Page 15: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 29

29/09/2009 - 29 TLCE - B7 - © 2007 DDC

Lesson B7: PLL digital applications

• Clock synchronization– Clock multipliers

– Resynchronization with DLL

• Clock-data recovery (CDR)– Self-synchronizing serial transmission

– Embedded clock

• PSK demodulator– Example of embedded clock

– Lock of phase-modulated signals

TLCE - B7 29/09/2009

© 2007 DDC 30

29/09/2009 - 30 TLCE - B7 - © 2007 DDC

PSK modulation

• Carrier-synchronous modulation

• Phase jump 180°

Page 16: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 31

29/09/2009 - 31 TLCE - B7 - © 2007 DDC

Coherent PSK demodulators

• Coherent demodulators requires locking the PLL with a phase modulated signal.

– How to phase-lock on a phase changing signal ?

• Remove modulation– If 2/N rotations, raise to power N

– Lock on carrier x N

• Exploit some features of the modulation– Transitions in fixed positions

– PSK - 180° example

TLCE - B7 29/09/2009

© 2007 DDC 32

29/09/2009 - 32 TLCE - B7 - © 2007 DDC

PSK demodulator - operations

• Obtain pulses from transitions (A)– Always a transition in the middle of Tbit

• Filter the middle-Tbit pulses (C)– Block pulses at Tbit boundary: mask B

• Lock the pulse sequence with a PLL– Double-frequency VCO (E)

• Obtain signals with /2 phase difference (B and D)– Complementary dividers

• Sample the input (or AM coherent demodulation)

Page 17: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 33

29/09/2009 - 33 TLCE - B7 - © 2007 DDC

Coherent PSK demodulator - signals

Modulation

Modulated signal

transitions

Window for fixed transitions

Fixed transitions

Synchronous signal

Duoble frequency

Demodulated out

TLCE - B7 29/09/2009

© 2007 DDC 34

29/09/2009 - 34 TLCE - B7 - © 2007 DDC

Coherent PSK demod. – block diagram

Dual edgepulse generator

Page 18: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 35

29/09/2009 - 35 TLCE - B7 - © 2007 DDC

Integrating demodulator

• Digital sampling: use a minimum part of the signal– 1 bit quantization

– Single sample

– Information loss, noise sensitivity

• Continuous evaluation– XOR and average over the period

» Only quantization error

– Coherent demodulation(reference signal) x (analog input signal), integrated over one period,final evaluation of the sign

» Uses all information in amplitude and time domains

TLCE - B7 29/09/2009

© 2007 DDC 36

29/09/2009 - 36 TLCE - B7 - © 2007 DDC

Message synchronization

• Special character at beginning of message (SOH, SYNC, …)

– Symbol different from resting line

– Similar to a Start Bit

– Not usable in data field (or search disabled)

Page 19: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 37

29/09/2009 - 37 TLCE - B7 - © 2007 DDC

Synchronization sequences

• Autocorrelation function with a single maximum– PN sequences, Barker, Gold, …

• Correlation circuits– Shift register with decoder on parallel outputs

– Shift register with weighted summation of outputs

– Analog correlator

– Serial correlator

• Used in UMTS (descrambling) and GPS/Galileo

• Usable for bit synchronization and clock recovery– Multiple sampling + correlation

TLCE - B7 29/09/2009

© 2007 DDC 38

29/09/2009 - 38 TLCE - B7 - © 2007 DDC

Parallel correlator

• Recognizes a pattern in the shift register– All bits must match

– No error allowed

– Used for short sequences

Find 61h

Synch out

Page 20: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 39

29/09/2009 - 39 TLCE - B7 - © 2007 DDC

Serial correlator

• Compares input and reference on each clock

• Counter of different bits (errors)– Can accept erros (treshold below total bit number)

– Search for correlation maximum

TLCE - B7 29/09/2009

© 2007 DDC 40

29/09/2009 - 40 TLCE - B7 - © 2007 DDC

Analog correlator

• Sum the shift register output with +-1 weights– Can accept errors (treshold below total bit number)

– Search for correlation maximum

• Can use multibit or analog samples– Better max positioning

Page 21: Telecommunication Electronics - · PDF fileTelecommunication Electronics B7 ... – Synchronizers and clock/data recovery sect. 3.7.3 ... – Always a transition in the middle of Tbit

TLCE - B7 29/09/2009

© 2007 DDC 41

29/09/2009 - 41 TLCE - B7 - © 2007 DDC

Lesson B7 – Test questions

• List some applications of PLLs in digital circuits.

• Which are te benefits of clock resynchronization in complex ICs?

• Which are the benefits of clock embedding in a digital serial channel?

• Describe some techniques to embed clock and data in the same signal.

• Which modulations or encoding allow clock recovery from data ?

• Which techniques can be used for digital phase demodulation?