page 1el/ccut t.-c. huang nov. 2003 tch ccut introduction to ic design tsung-chu huang ( 黃宗柱 )...

38
Page 1 /CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Introduction to IC Design Design Tsung-Chu Huang ( 黃黃黃 ) Department of Electronic Eng. Chong Chou Institute of Tech. Email: [email protected] 2003/11/24

Upload: oswin-walker

Post on 18-Jan-2018

224 views

Category:

Documents


0 download

DESCRIPTION

Page 3EL/CCUT T.-C. Huang Nov TCH CCUT Clocking Strategies Huffman Model for a Finite State Machine (review) QD QD QD QD Combinational Circuit PI: Primary Inputs PPI: Pseudo PI PO: Primary Outputs PPO: Pseudo PO Clk M L N M

TRANSCRIPT

Page 1: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 1EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Introduction to IC DesignIntroduction to IC Design

Tsung-Chu Huang(黃宗柱 )

Department of Electronic Eng.Chong Chou Institute of Tech.

Email: [email protected]

2003/11/24

Page 2: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 2EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clocking Strategies1. Clocked System 2. Latch and Registers3. System Timing (Constraint)4. Single-Phase Memory5. Phase Locked Loop Clock Techniques6. Metastability and Synchronization Failure7. Single-Phase Logic Structure8. Two-Phase Clocking9. Two-Phase Memory Structure10.Two-Phase Logic Structures11.Four-Phase Clocking12.Four-Phase Memory Structures13.Four-Phase Logic Structures14.Clock Distribution

Page 3: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 3EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clocking StrategiesHuffman Model for a Finite State Machine (review)

Q DQ DQ DQ D

CombinationalCircuit

PI: Primary Inputs

PPI: Pseudo PI

PO: Primary Outputs

PPO: Pseudo PO

Clk

M

L

N

M

MS 2Count State

Page 4: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 4EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clocking StrategiesBasic Loop Timing Constraints (review)

Q DQ DQ DQ D

C

QDDQp ttt :n timePropagatio

DCCDs ttt : timeSetupCQQC tt : timeQ-to-Clock

T

1 : timeCycle DCQDCQ tttTf

setup

hold

Page 5: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 5EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clocking StrategiesTiming Constraints Considering Jitter & Skew (review)

SKJTDCQDCQ tttttTf

1

Q DQ DQ DQ D

Clk

JitterSkew

Page 6: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 6EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

LatchFunction (review)

1. Level-Enabled (E, EN, Enable, Clk)2. Function: Q=D if E=1

No Change if E=0

D Q

EN

ENHigh-Level Enabled

D Q

EN

ENLow-Level Enabled

Page 7: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 7EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

RS Latch(review)

S

RQ

Q S

RQ

Q

S

R

Q

Q

EN

Page 8: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 8EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

D Latch(review)

1

0

D

EN

Static:

0

1

D

EN

Dynamic:

Clk Clk

D QWeak-Static:

Page 9: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 9EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Multiplex(review)

A

B

0

1

A

B

C

CBACZ

A

B

CZ

C

Page 10: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 10EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Transparent Output

D Q

EN

D Q

EN

tPG

1Φ 2Φ

2ΦtPG

Page 11: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 11EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Flip-FlopsFunction (review)

1. Edge-Triggered2. Usually consisted of a low- and a high latches

D Q

EN

Clk

D Q

EN

D Q

EN

Clk

D Q

EN

D Q

Clk

D Q

Clk

Page 12: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 12EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Flip-Flops without Transparency

D Q

EN

Clk

D Q

EN

ClkΦ 1

ClkΦ 2

Fully self-constrained!

Page 13: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 13EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Flip-FlopsA static positive-edge D Flip-flop (Vdd>2Vt) (review)

D

Clk

Q

Page 14: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 14EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Synchronous v.s. Asynchronous ControlSettable, Resettable, etc.

Synchronous Asynchronous

Structural

Behavioral

Control Q

No Clk in the path to Q

Control Q

With Clk in the path to Q

always @(posedge Clk or posedge Control)if(Control) Controlled_state;else Clocked_circuit;

always @(posedge Clk)if(Control) Controlled_state;else Clocked_circuit;

Page 15: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 15EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clock BufferingClock Tree with a branchDegree of 3 or 4 (~ 2.718)without consideration of route

A single large buffer:

Page 16: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 16EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

H-Tree

Page 17: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 17EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Contra-data Direction Clock

Clk

D QD QD QD Q D QD Q

RC

Data

CQDCRC ttt

Clk

D QD QD QD Q D QD Q

RC

Data

PGCQDCSKRC ttttntT Generally,

Page 18: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 18EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Phase Lock Loop (PLL)

PhaseDetector

ChargePump LPF VCO

FrequencyDivider

U

D

nfo /

of

nfo

if

1. Skew Reduction; Synchronization2. Frequency Multiplier3. Data Recovery

Page 19: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 19EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

A Typical VCO

Current mirror

180-degree oscillator

Vc

fo

Page 20: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 20EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

VCDLVoltage Control Delay Line

Vc

toti

Page 21: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 21EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

PLL Clock Generator

ClockPLL

D Q

PLL

D Q

Page 22: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 22EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

PLLs Applied to Different DomainsSkew (ps)

Equivalent Distance (ps)Max Skew PLL1

PLL2

PLL3

CLK

Page 23: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 23EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Metastability & Synchronization Failure

Wanted D

ataN

ext Data

Clock

Setup

Hold

Wanted D

ataN

ext Data

Wanted D

ataN

ext Data

Wanted D

ataN

ext Data

Q

Q

Q

Q

Logic Error!

Page 24: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 24EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Skew-Tolerant Design

1. Reverse Order of Clocking for only scan 2. Skew-Tolerant Dynamic Circuit3. Skew-Tolerant Domino4. Clock Domain Ranging

Page 25: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 25EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Single-Clock Complementary PhaseCombinational

Circuit LCombinational

Circuit H

DHQL DL QH

Clk

XL XH

TL

TH

CDLt

HCQt

HHDQt

CDHt

LCQt

LLDQt T

Page 26: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 26EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Single-Clock Complementary Phase

CDLt

HCQt

HHDQt

CDHt

LCQt

LLDQt T

Timing Diagram

DL

Clk

DH

Page 27: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 27EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Single-Clock Double Edge

1. Can slack the master clock only. 2.

TL

TH

Q DQ DQ DQ D

CombinationalCircuit

SKJTDCQDCQHLHL tttttTTTTf

) ,min( ;1

Page 28: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 28EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Single-Clock Complementary PhaseLatch System

CombinationalCircuit L

CombinationalCircuit H

DHQL DL QH

Clk

XL XH

TL

TH

Data Transparency!

Page 29: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 29EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Single-Clock 2 Phase

CombinationalCircuit 1

CombinationalCircuit 2

D2 Q2

X2 X2

1Φ2Φ

Q1 D1

Page 30: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 30EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Comparison of some DFF’s

D

Clk

Q

Q

Q

D

Clk

ClkClk

21

1:11:1

21static

dynamic#clock

1

1

1

1

1

#phase

1

1

C

2

2

local load

contention

Vt degrading

Page 31: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 31EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

N-Phase Clock Notations

divisions. into divided is cycle a e,conveniencFor N

NN 1or )1(0

division.th in theonly levelhigh a hasit that denotes iΦi

23Φ

Page 32: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 32EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

4-Phase FF

D

Q

12Φ 34Φ

PrechargePrecharge

Redistribute

Evaluate

PrechargePrecharge

Redistribute

Evaluate1Φ 3Φ

Page 33: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 33EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Johnson Counter

0D 1

1D 1

2D 2

3D 2

4D 3

5D 3 D 4

n

-22n

D 4n

-12n

C lk= 1

(a )

0D 4

n

1D 1

2D 1

3D 2

4D 2

5D 3

-22n

D 4n -1 D 4

n

-12n

C lk= 0

(b )

Page 34: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 34EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Multiple Phase Clock Generator

0D Q

Q1

D Q

Q

D Q

Q-2n

2

D Q

Q-1n

2DD Q

Q

C lkR ese t

n -2n -30n -1 -2n2-3n

2n2-1n

2

C lk /2

Page 35: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 35EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clock Domain Programming

Ske w

Frequency

multiplicity

Phase

Page 36: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 36EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clock Domain InterfaceLatch-base

BuferLeading Phase

LogicLagging Phase

Logic

Latch-baseBufer

Lagging PhaseLogic

Leading PhaseLogic with

1 cycle delay

SIPOInteger-TimesFrequency

Low--FrequencyCircuit

PISOLow-FrequencyCirciut

Integer-TimesFrequency

PLLData Recovery

Skewed or Remote

Clock recoveredBut delayed

Page 37: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 37EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

Clock Gating Problem

D3 Q3

Gating

D1 Q1

D2Q2

GatedUngated

CQt

QDtDCt

Discussed in advanced topic and should be careful!

Page 38: Page 1EL/CCUT T.-C. Huang Nov. 2003 TCH CCUT Introduction to IC Design Tsung-Chu Huang ( 黃宗柱 ) Department of Electronic Eng. Chong Chou Institute of Tech

Page 38EL/CCUT T.-C. Huang Nov. 2003

TCH

CCUT

A Simple Clock Gating Condiction

1. Single Clock, Single Phase, Positive-Edge Trigger for Ungated and Gated Circuits

2. Gating Signal can be synchronized at negative edges and generated from the complementary clock domain.

3. Assme Clock Gating delay: tCG

CGSKJTDCQDCQ ttttttTf

2 1