求助 用hspice仿运放没有波形
录入:edatop.com 阅读:
FOLDED CASCODE OPA
.options list node post
VIN+ 1 0 DC 0 ac 1
VIN- 2 0 DC 0 ac 0
VDD 3 0 DC 5
CL 4 0 10PF
X1 1 2 3 4 OPAMP
.SUBCKT OPAMP 1 2 3 4
m1 5 1 7 0 NMOSl l=1u w=3u
m2 6 2 7 0 NMOSl l=1u w=3u
m3 7 3 0 0 NMOSl l=1u w=3u
m4 5 8 3 3 PMOSl l=2u w=1u
m5 6 8 3 3 PMOSl l=2u w=1u
m6 11 10 5 5 PMOSl l=2u w=1u
m7 14 10 6 6 PMOSl l=2u w=1u
m8 12 11 13 0 NMOSl l=1u w=3u
m9 14 11 15 0 NMOSl l=1u w=3u
m10 13 12 0 0 NMOSl l=1u w=3u
m11 15 12 0 0 NMOSl l=1u w=3u
m12 10 3 0 0 NMOSl l=1u w=4u
m13 8 10 9 9 PMOSl l=2u w=1u
m14 9 8 3 3 PMOSl l=2u w=1u
m15 3 3 0 0 NMOS1 l=1u w=3u
m16 4 14 3 3 PMOS1 l=1u w=266u
m17 4 3 0 0 NMOS1 l=1u w=2u
R1 8 10 2K
R2 11 12 2K
CC 4 14 3PF
.MODEL NMOSl NMOS VT0=0.75V KP=110u LAMBDA=0.1 PHI=0.7 +MJ=0.29996 MJSW=0.165269 CGBO=1E-13 CGSO=1.83E-10 CGDO=1.83E-10 +CJ=8.125778E-4 CJSW=2.801152E-10 XJ=2E-7 TOX=1.28E-8
.MODEL PMOSl PMOS VT0=-1.0V KP=50u LAMBDA=0.2 PHI=0.8 +MJ=0.471689 MJSW=0.219468 CGBO=1E-13
+CGSO=2.01E-10 CGDO=2.01E-10 CJ=8.46187E-4 CJSW=2.826818E-10 +XJ=1E-7 TOX=1.24E-8
.ENDS
.op
.dc VIN+ 0 5 0.1
.print dc v(4)
.ac dec 10 1 10MEG
.print ac vdb(4) vp(4)
.end
代码如上了 结果一直显示**error** model name nmos1 in the element 0:m15
is not defined.
**error** model name pmos1 in the element 0:m16
is not defined.
**error** model name nmos1 in the element 0:m17
is not defined.
没有波形啊 急
.options list node post
VIN+ 1 0 DC 0 ac 1
VIN- 2 0 DC 0 ac 0
VDD 3 0 DC 5
CL 4 0 10PF
X1 1 2 3 4 OPAMP
.SUBCKT OPAMP 1 2 3 4
m1 5 1 7 0 NMOSl l=1u w=3u
m2 6 2 7 0 NMOSl l=1u w=3u
m3 7 3 0 0 NMOSl l=1u w=3u
m4 5 8 3 3 PMOSl l=2u w=1u
m5 6 8 3 3 PMOSl l=2u w=1u
m6 11 10 5 5 PMOSl l=2u w=1u
m7 14 10 6 6 PMOSl l=2u w=1u
m8 12 11 13 0 NMOSl l=1u w=3u
m9 14 11 15 0 NMOSl l=1u w=3u
m10 13 12 0 0 NMOSl l=1u w=3u
m11 15 12 0 0 NMOSl l=1u w=3u
m12 10 3 0 0 NMOSl l=1u w=4u
m13 8 10 9 9 PMOSl l=2u w=1u
m14 9 8 3 3 PMOSl l=2u w=1u
m15 3 3 0 0 NMOS1 l=1u w=3u
m16 4 14 3 3 PMOS1 l=1u w=266u
m17 4 3 0 0 NMOS1 l=1u w=2u
R1 8 10 2K
R2 11 12 2K
CC 4 14 3PF
.MODEL NMOSl NMOS VT0=0.75V KP=110u LAMBDA=0.1 PHI=0.7 +MJ=0.29996 MJSW=0.165269 CGBO=1E-13 CGSO=1.83E-10 CGDO=1.83E-10 +CJ=8.125778E-4 CJSW=2.801152E-10 XJ=2E-7 TOX=1.28E-8
.MODEL PMOSl PMOS VT0=-1.0V KP=50u LAMBDA=0.2 PHI=0.8 +MJ=0.471689 MJSW=0.219468 CGBO=1E-13
+CGSO=2.01E-10 CGDO=2.01E-10 CJ=8.46187E-4 CJSW=2.826818E-10 +XJ=1E-7 TOX=1.24E-8
.ENDS
.op
.dc VIN+ 0 5 0.1
.print dc v(4)
.ac dec 10 1 10MEG
.print ac vdb(4) vp(4)
.end
代码如上了 结果一直显示**error** model name nmos1 in the element 0:m15
is not defined.
**error** model name pmos1 in the element 0:m16
is not defined.
**error** model name nmos1 in the element 0:m17
is not defined.
没有波形啊 急
m15 3 3 0 0 NMOS1 l=1u w=3u
m16 4 14 3 3 PMOS1 l=1u w=266u
m17 4 3 0 0 NMOS1 l=1u w=2u
NMOS1,PMOS1没有定义,是NMOSl和PMOSl吧,注意小写的L和数字1的区别。
....楼上正解 这错的太低级了
改了 就可以仿真了 但是新问题出现了 增益曲线是负的.... 表示增益小于一吗? 可是我手工算的开环增益很大才对啊 怎么会小于1呢
VIN+ 1 0 DC 0 ac 1
VIN- 2 0 DC 0 ac 0
输入没有直流偏置,直接加小信号行吗?
申明:网友回复良莠不齐,仅供参考。如需专业解答,请学习本站推出的微波射频专业培训课程。
上一篇:关于nand flash和nor flash的几个疑问
下一篇:hspice 运算放大器 大神们请留步 小弟求指教!