|
想用meas语句 测出noise
* M7 m l+ ^. U: U下面是我的sp文档 v+ e/ g: v9 q, |' Y
*007! t) m1 i( z: C) A* ]* B
.options post scale=1u measout co=1328 X/ D8 D, W& e. x! }7 |5 [
.lib 'h05mixddst02v231.lib'tt
* [ c+ a3 p' v.param k1=1.52 p( M! ]5 Z/ j% ~6 E
*stage-1
7 S6 {( G! `4 W4 f) K6 Y9 `0 Om5 2 1 vdd vdd mp l=1 w=4.8
; \$ Q* \+ s% R3 T7 @' rm1 3 vi- 2 2 mp l=1 w=465 N- T6 j/ f) W1 { v' |# I0 V
m2 4 vi+ 2 2 mp l=1 w=46
" R0 k8 L8 n( U& [4 \6 k# \m3 3 3 0 0 mn l=k1 w='10.7*k1'
1 O( |- s( t# ~; D6 ~: z9 wm4 4 3 0 0 mn l=k1 w='10.7*k1'
) h0 m. Q) g, m, N# g*stage-2
2 ] T. |" d* f0 u( j! h% r7 X( [m6 5 4 0 0 mn l=k1 w='121*k1'
! `' J0 r+ S. A+ V& ?- p$ Fm7 5 1 vdd vdd mp l=1 w=25
; N5 D! N2 k- y" Ncc 5 4 2p
; I0 s) f8 }) scl 5 0 5p, R" r, w) r& {# [: \
*source
8 ~" T1 A$ C" r) i$ nvdd vdd 0 dc 5
$ Y L0 {' C9 x2 ~1 `2 M4 Vvb 1 0 dc 3.7
' o$ m ^ p7 ]9 xv+ vi+ 0 dc 2 ac 1 sin 2 0.5 1k5 U5 O5 H' H3 `% Z/ j s
v- vi- 0 dc 2
8 p" s! F# _3 N- g/ y3 F
: G6 m3 k; [" i h: A/ m.op
# c: M) K3 \) `( e1 y; I0 g8 i.ac dec 10 1 100MEG sweep k1 1.0 2.0 0.1/ Y) f5 o8 o, L) ~: M" w2 j
.noise v(5) v+ 10
, }. P, o: Q/ n5 }& r.print noise onnoise innoise
, i6 ~' u+ I2 k.plot noise onnoise innoise+ L" h( O& {7 O5 ]
.plot vp(5) vdb(5)
" o( ]5 j3 S' `3 M6 v6 a6 t, R( U+ [/ _9 O B* R3 K, x6 m' d
.meas ac vdbmax max vdb(5)
0 n3 }+ j/ W O) u9 ?.meas ac v3db param='vdbmax-3'
: p; }/ j# x, y.meas ac f3db when vdb(5)=v3db
, }& h8 I( t+ Y& A7 X6 F.meas ac phsmagin find vp(5) when vdb(5)=0
7 [% r, V8 K3 O& w9 }.meas ac phasemargine param='180+phsmagin'3 l6 A: |8 p! o/ q) g+ Q, G
.meas ac noi3db integral innoise from=1 to=1000
0 z. R1 {5 n4 ^, Q+ G. ^: w; }.meas ac opttt param='noi3db*k1'
8 ~" `$ S1 h) B, E" b3 {.meas ac opttx param='noi3db*vdbmax'
" n6 m ?: W8 K# d4 S9 f.end
0 C' q8 m# N# V( @- F3 Z) x' k# u6 c6 W9 r0 o
请教怎么用 measures语句测出电路从1-1000hz的等效input noise ....
" |7 g. i: {9 Z等待高手。。。 |
|