Chip123 科技應用創新平台
標題:
about measure
[打印本頁]
作者:
slippedwind
時間:
2009-9-4 04:42 PM
標題:
about measure
想用meas语句 测出noise
/ e3 p5 i `0 @' y" |5 ~& V
下面是我的sp文档
% x+ x% {; x: Z9 ~6 X/ G
*007
% G/ I7 g: l0 E) ]' Y @
.options post scale=1u measout co=132
0 p8 {) @3 d8 h' g1 x5 n$ n
.lib 'h05mixddst02v231.lib'tt
( T7 f2 \7 B3 n, q K; R
.param k1=1.5
1 n8 o# ^, l h# g! ]
*stage-1
* e' Q' s1 f6 R+ F. Y L
m5 2 1 vdd vdd mp l=1 w=4.8
8 {: H3 w5 f% Z$ v; }3 E1 a
m1 3 vi- 2 2 mp l=1 w=46
3 Q- G/ d7 R- H( W) ?# n) e( {' M/ {
m2 4 vi+ 2 2 mp l=1 w=46
1 X6 J! w+ r- D! Q9 n# g4 Z* j
m3 3 3 0 0 mn l=k1 w='10.7*k1'
/ s+ c4 l8 l1 s' x
m4 4 3 0 0 mn l=k1 w='10.7*k1'
: H( D, I- ?- s" X/ K& |
*stage-2
* }% F9 Z6 g2 N
m6 5 4 0 0 mn l=k1 w='121*k1'
- D8 J4 x1 i0 [; S! ?& E2 Z l
m7 5 1 vdd vdd mp l=1 w=25
0 n) M5 Q" W( j
cc 5 4 2p
4 W, o, E. E5 u3 e+ q& G' ~* u
cl 5 0 5p
3 c) V/ L7 Z5 q$ ~/ A0 C+ r
*source
& o1 `' P$ _' ^) _
vdd vdd 0 dc 5
' F/ _/ x) ]( b6 C3 Y# B( y1 z5 _
vb 1 0 dc 3.7
6 ~, `" A- y9 n/ i1 W- s
v+ vi+ 0 dc 2 ac 1 sin 2 0.5 1k
" r. O+ P6 k! @0 U# J' k
v- vi- 0 dc 2
0 G" E& {5 O% y
. { i1 f6 h' i2 d7 V
.op
( p6 V$ }6 u# f
.ac dec 10 1 100MEG sweep k1 1.0 2.0 0.1
/ k, _* b# e/ S- K) b
.noise v(5) v+ 10
& G( s' n- t% V
.print noise onnoise innoise
" C5 K5 V6 Y" D8 [2 A
.plot noise onnoise innoise
1 f' L- T& [* O' d \' m5 Z0 R
.plot vp(5) vdb(5)
8 y4 ^: ^0 K& Q# \
( z! E/ d2 N7 ~6 z* |( d$ Q
.meas ac vdbmax max vdb(5)
3 E- C. Q6 X' e [! c
.meas ac v3db param='vdbmax-3'
* q% H) B0 z2 h2 p3 X! `
.meas ac f3db when vdb(5)=v3db
J8 \6 K/ O9 L* `$ A1 X$ `% |
.meas ac phsmagin find vp(5) when vdb(5)=0
7 k4 s9 t# a3 d( y- c
.meas ac phasemargine param='180+phsmagin'
0 A" U J4 q& b
.meas ac noi3db integral innoise from=1 to=1000
# ^7 U" p S! }' n
.meas ac opttt param='noi3db*k1'
9 S. V2 o2 }' [& D- f, D
.meas ac opttx param='noi3db*vdbmax'
' `" o2 z3 d9 F/ Z3 g* V
.end
" } z- K8 E9 J% x
2 K P" l2 z3 a5 ^" a2 Q9 S; w: ^
请教怎么用 measures语句测出电路从1-1000hz的等效input noise ....
7 t& w! ]3 o, y0 g: V0 Z
等待高手。。。
歡迎光臨 Chip123 科技應用創新平台 (http://chip123.com/)
Powered by Discuz! X3.2