Chip123 科技應用創新平台
標題:
about measure
[打印本頁]
作者:
slippedwind
時間:
2009-9-4 04:42 PM
標題:
about measure
想用meas语句 测出noise
# ^. C C5 H9 _& \: i; g2 Y
下面是我的sp文档
- R( R- j; F; _
*007
- c- t7 ^$ M9 n- e* x/ j
.options post scale=1u measout co=132
% P& Z" G9 l1 T9 B0 r
.lib 'h05mixddst02v231.lib'tt
7 f( l) r# _ L9 Q& J" F
.param k1=1.5
' ?2 n) v- Z2 \/ c; a2 t9 S
*stage-1
! l) P5 j% w" N l3 m
m5 2 1 vdd vdd mp l=1 w=4.8
?. o c7 a0 |1 a, S
m1 3 vi- 2 2 mp l=1 w=46
; L% g. y$ D) h9 I; C& `1 K9 z1 v) L& x
m2 4 vi+ 2 2 mp l=1 w=46
, L/ Z' p+ V4 i i
m3 3 3 0 0 mn l=k1 w='10.7*k1'
8 g( Z7 S. l9 h; p' c& ~2 j3 r
m4 4 3 0 0 mn l=k1 w='10.7*k1'
3 y9 V3 ~% l( E: { Q
*stage-2
. e4 s- `' Z! ]& ?7 Z( M
m6 5 4 0 0 mn l=k1 w='121*k1'
' | I' C2 z- [# m# G8 ^0 K
m7 5 1 vdd vdd mp l=1 w=25
5 j* [3 G) W! k4 H6 J
cc 5 4 2p
/ z) w4 W; B: X
cl 5 0 5p
9 V- U$ C% t$ ?5 O* m# n7 k1 D
*source
# i7 G, G% j8 R4 z, q
vdd vdd 0 dc 5
) F* L/ ]0 v+ \' R
vb 1 0 dc 3.7
" l$ M o2 k: z, Q
v+ vi+ 0 dc 2 ac 1 sin 2 0.5 1k
$ k) K0 E2 e! g& t+ q( x
v- vi- 0 dc 2
, e. W6 u1 ~# U
2 B+ x( Y0 [9 v9 {, X2 p
.op
* n4 A) @( \% r- N N+ U
.ac dec 10 1 100MEG sweep k1 1.0 2.0 0.1
' R" w9 B: ?, o9 I5 o6 V- z
.noise v(5) v+ 10
@4 ^$ O2 S2 p
.print noise onnoise innoise
/ K6 g$ s9 R3 p; d) z5 c: O
.plot noise onnoise innoise
+ b9 V% k! @8 x" @3 ?* P }
.plot vp(5) vdb(5)
# N+ d1 F; d# y. {
1 u- W, T6 V" k8 v6 T) ^1 F
.meas ac vdbmax max vdb(5)
[0 f3 Z3 r* F* i, B
.meas ac v3db param='vdbmax-3'
& g9 H" ?; Z4 _* X/ Z
.meas ac f3db when vdb(5)=v3db
# i$ m/ H6 g( x, F; @* X7 O0 A
.meas ac phsmagin find vp(5) when vdb(5)=0
% Y$ U2 r4 c3 `- v* X$ Q( \& i
.meas ac phasemargine param='180+phsmagin'
/ e# E( x0 h- w9 B
.meas ac noi3db integral innoise from=1 to=1000
# D5 X' m; w( T( m
.meas ac opttt param='noi3db*k1'
0 W1 W, U" v* L. V9 x) u- [8 H
.meas ac opttx param='noi3db*vdbmax'
) x' G l/ ]1 j3 d6 J2 O4 X6 ~( x$ U0 }
.end
3 R. ? @ z O' y
6 A; T h( v+ y8 R% Y
请教怎么用 measures语句测出电路从1-1000hz的等效input noise ....
0 @4 o# j% b0 B! I& k
等待高手。。。
歡迎光臨 Chip123 科技應用創新平台 (http://free.vireal.world/chip123_website/innoingbbs/)
Powered by Discuz! X3.2