You are on page 1of 22

Lecture 15:

Periodic small signal analysis


S.Gambini

EECS 240 Topic 15:Periodic small signal analysis

2011 S.Gambini

Encore: MOS T/H


vclock

vin

How do we simulate this circuit?


Several options:
1.Transient
Captures Sampling Effect
Does not provide transfer function
Transient noise simulation inefficient
Does not provide a frequency domain view
2.AC analyses (AC,noise)
Provides tracking mode bandwidth/tracking mode
transfer function
Provides noise
Does not include effect on sampling
Requires special techniques to scale-up to larger
blocks (DC bias resistors etc. for amplifiers)

Would like an analysis type that simulates transfer function/noise but keeps into account
the sampling effect

EECS 240 Topic 15:Periodic small signal analysis

2011 S.Gambini

Encore: MOS T/H


What is the problem in this circuit?
Vclock signal excites hard non-linearity in transistor (switched between on and off modes)
Hard to find DC operating point
Common problem in RF circuits-solved by RF simulation

vclock

vin

EECS 240 Topic 15:Periodic small signal analysis

2011 S.Gambini

(Simple)Example: Singletransistor mixer


Id

vdrain

Vclock

Vdd
T/2

vin

T/2

vclock
Id?gm?
Assumptions:
Vin=VDC+vin
vin small,slow on T timescale
square law transistor

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

(Simple)Example: Singletransistor mixer


Id

Vclock

Vdd
T/2

vin

T/2

vclock

Id=(VDC-Vth+vin)2
=(VDC)2+2(VDC-Vth)vin+(vin)2

Id~0

Usually gm=, how can we do this here?


EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

nd

Itail F
V
SR =
F

(16)

Example: Single-transistor mixer


2N if
KT
3KT
2
Solution:
v
were
constant, Id would be periodicin +
Vn
(17)
f atCharmonics
CLef fof vin
c
Can look
f gm
Id 1
u =
(18) DC-Vth+vin)2
I
d=(V
Cc
=(VDC)2+2(VDC-Vth)vin+(vin)2
Cf
f=
(19)
Cs + Cf + C1
1 nd
P M tan (
)
(20)
u
vin
gm2
v
clock
=
(21)
C2 CLef f
CLef f + C2 + Cc
2I1
Id~0
SR =
(22) Vclock
Vdd
Cc
Consider harmonic k of Id,Id(k) and define
(k)
I
gm(k) = d
vin
gm has also harmonics, i.e. it is periodic

T/2

T/2

(23)

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

CLef f + C2 +

SR =

C2 CLef f
Cc

2I1
SR =
Cc

Input/output spectrum
(22)

2N KT
3KT
+
f Cc
CLef f
Consider harmonic k of Id,Id(k) and define
2
Id=(VDC-Vth+vin)
f gm1
(k)
2
2
I

=
=(V ) +2(VDC-Vth)vin+(v
u in)
gm(k) = d
(23) DC
Cc
vin
Cf
f=
gm has also harmonics, i.e. it is periodic
Cs + Cf + C1
DC input-> output at all harmonics of clock
1 nd
P M tan (
)
Think about repeating this for every nonlinear element,
u
gm2
and have a small signal ckt for each harmonicnd =
C C
f
Key: ckts do not depend on vin for vin small
CLef f + C2 + 2 CLef
c
2I1
Id~0
SR =
Vclock
Vdd
Cc
Vn2

T/2

vin(f)

For this example


gm(k)

Id(f)

4
1/T

2/T

3/T

EECS 240 Topic 15: Periodic small signal analysis

T/2

(k)

Id
(k)
gm =
vin
= 2(Vdc Vth )S (k) = gm S (k)
S (k)

S (k) = 0 if k even
4
=
if k odd
(2k 1)
2011 S.Gambini

P M tan1 (

nd =

gm2

(20)

Input/output spectrum
C2 CLef f
Cc

CLef f + C2 +

(21)

2I
1
What about sinewave
SR = input with amplitude A? (22)
Cc
Multiply the periodic gm with input
Sidebands
(k)

gm(k)

Id
=
vin

(23)
vin

Id

vclock

vin(f)
Input at fin gives output at k/T+/-fin
Output at fout can arise from input at fout+/k/T

Id(f)
1/T

2/T

3/T

4 EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

CLef f + C2 +

C2 CLef f
Cc

2I1
SR =
Cc

Example: noise
(22)

Id

What happens to the source noise?


(k)

gm(k)

Id
=
vin

(23)

Has spectral components at all frequencies

vin

vclock

vin(f)
Input at fin gives output at k/T+/-fin
Output at fout can arise from input at fout+/k/T
What is the PSD at each frequency?
Id(f)

41/T

Obviously we can only do this by hand for small cktsSPECTRE on the other hand....
2/T

3/T

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Frequency book-keeping
Does vin really have to be slow? how many harmonics should we consider?
vin can be arbitrary
But: cannot choose independently input frequency, output frequency and number of harmonics
Example:clock period=1MHz
Desired output frequency= 0-1MHz
Input frequency =1GHz
#Harmonics?

vin(f)
You need to set these parameters correctly in SPECTRE
to get the right result
Id(f)
1/T

2/T

3/T

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Periodic small signal analyses


Used when circuit has a large, periodic input (at frequency fLO )
that generates significant non-linearity and a second input that
excites a linear response
Large signal determines a periodic operating point Id(t),gm(t)
which can be decomposed in harmonics of fLO
Small signal input at fIN generates output at fIN+/-k fLO
vLARGE
vSMALL

EECS 240 Topic 15:Periodic small signal analysis

2011 S.Gambini

Reprise: MOS T/H


Use spectre periodic noise analysis to solve this problem
Requires two/three simulations
PSS (Periodic steady state):Solves quickly for circuit response due to clock only
PAC/Pnoise (Periodic AC/Periodic noise) Solves periodically linearized circuit for noise,
transfer function

vclock

vin

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Simulator Setup
Pnoise Analysis
Sampled-Data
System:fmax=fS/2
Good starting point
for low error

Adds ideal S/H


function,needed for SC
Forces simulator
to run a specific
sampling point
EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Periodic Noise Analysis


=RC=3.8nS

fS=10MHz
fS=400MHz

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Capacitive feedback amplifier


Initialization switches

Initialization switches
HW4 OTA

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

HW4 OTA Design procedure


Cf
gmp

2Cf
Vi
Cp

gmn

Gm
+

CL

Let us choose as primary variable Cp/Cf

Vx

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

HW4 OTA Design procedure


Cf

gmp
2Cf
Vi
Cp

gmn

Gm
+

CL

+
Vx

Derive specifications:
(Arbitrary) assign 0.4% error to static, 0.1% to settling
Static accuracy fA0>250 over output range
settling time:
feedthrough &slewing small (verify!)
Use table in Lecture 12 to determine for 0.1%
optimal phase-margin 75 degrees
settling time ~4 - =1nS (fu=160MHz)

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

CLef f + C2 +

C2 CLef f
Cc

2I
HW4 OTA Design
procedure
SR =
(22)
1

Cf
gmp

2Cf
(k)

Vi

gm(k)

Cc

gmn

+
Vx

- gm(k) = Id
vin
Gm
(k)
(k)
CL
= 2(V

V
)S
=
gm

S
th +
Cp dc

S (k) = 0 if k even
4
(k)
S =
if k odd
(2k 1)
Let us choose as primary variable x=Cp/Cf
Then we have:
Cf
1
f=
=
Cf + Cs + Cp
1 + Gcl + x
2nF KT
2
Von =
f CLef f
Gcl + x
CLef f = CL + Cf
1 + Gcl + x

(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)

4
EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

HW4 OTA Design procedure


Cf
gmp

2Cf
Vi
Cp

gmn

+
Vx

Gm
+

CL

Therefore, fixed x
1.Pick device L (based on gain)
2.Calculate f
3.Calculate CLeff to meet noise
4.Calculate Cf
5.Calculate gm required to meet BW
6.from L,x, gm, Cf calculate device V*

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Results
gmp 75u/1u

75u/1u

40u/400n

gmn 40u/400n

Vx
200uA
Cf=Cp=300fF
Cs=600fF

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Results

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

Settling error
In cadence define output:
EpsDyn=log10(abs(getData(/on ?result tran)-getData(/op ?result tran)-value(getData(/on ?result tran)getData(/op ?result tran) 20n))/value(getData(/on ?result tran)-getData(/op ?result tran) 20n)))

EECS 240 Topic 15: Periodic small signal analysis

2011 S.Gambini

You might also like