spice电子科学与技术2007.10.07宋明歆spice语言与应用第五章放大器设计(二)主要内容共源共栅级放大器设计差分放大器设计共源共栅级放大器设计b3b2b1inoutL=2uW=22uL=2uW=22uL=2uW=22uL=2uW=22ub3b2b1inoutL=2uW=22uL=2uW=22uL=2uW=22uL=2uW=22u一、直流传输特性*Maincircuit:Module0M1outb1N3GndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM2N3inGndGndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM3N2b3VddVddPMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM4outb2N2N2PMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24u*Endofmaincircuit:Module0.includeD:\Tanner\tanner\TSpice70\models\ml5_12.mdccompoutGnd2pFvb1b1Gnd3.3vb2b2Gnd2.2vb3b3Gnd1vvddVddGnd5.0vininGnd2.5.dcvin050.1.printdcinout扫描结果0.00.51.01.52.02.53.03.54.04.55.0vin(V)-0.50.00.51.01.52.02.53.03.54.04.55.05.5Voltage(V)v(out)v(in)Module0结果分析ex1_1Vi.op=(VImin+VImax)/2Vo.op=(VOmin+VOmax)/2特点:放大倍率大输出阻抗大(举例说明其好处)需要偏压设置偏置电压对传输特性的影响ex1_2*Maincircuit:Module0M1outb1N3GndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM2N3inGndGndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM3N2b3VddVddPMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM4outb2N2N2PMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24u*Endofmaincircuit:Module0.includeD:\Tanner\tanner\TSpice70\models\ml1_typ.mdccompoutGnd2pFvb1b1Gndvbiavb2b2Gnd2.2vb3b3Gnd1vvddVddGnd5.0vininGnd2.5.PARAMvbia=2.4.steplinparamvbia1.84.20.4.dcvin050.1.printdcinout偏置电压对传输特性的影响ex1_20.00.51.01.52.02.53.03.54.04.55.0vin(V)-0.50.00.51.01.52.02.53.03.54.04.55.05.5Voltage(V)v(out)v(in)Module00.00.51.01.52.02.53.03.54.04.55.0vin(V)-0.50.00.51.01.52.02.53.03.54.04.55.05.5Voltage(V)v(out)v(in)Module0查看直流工作点ex1_3*Maincircuit:Module0M1outb1N3GndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM2N3inGndGndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM3N2b3VddVddPMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM4outb2N2N2PMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24u*Endofmaincircuit:Module0.includeD:\Tanner\tanner\TSpice70\models\ml5_12.mdccompoutGnd2pFvb1b1Gndvbiavb2b2Gnd2.2vb3b3Gnd1vvddVddGnd5.0vininGnd2.PARAMvbia=3.3.op直流工作点结果ex1_3DCANALYSISv(N3)=9.0785e-001v(out)=2.5762e+000v(N2)=4.5783e+000v(in)=2.0000e+000v(Vdd)=5.0000e+000v(b3)=1.0000e+000v(b2)=2.2000e+000v(b1)=3.3000e+000i(vb1)=0.0000e+000i(vb2)=0.0000e+000i(vb3)=0.0000e+000i(vvdd)=-2.8069e-004i(vin)=0.0000e+0000123M1M2M3M4MODELnmosnmospmospmosTYPENMOSNMOSPMOSPMOSID2.81e-0042.81e-004-2.81e-004-2.81e-004VGS2.39e+0002.00e+000-4.00e+000-2.38e+000VDS1.67e+0009.08e-001-4.22e-001-2.00e+000VBS-9.08e-0010.00e+0000.00e+0000.00e+000VTH0.00e+0000.00e+0000.00e+0000.00e+000VDSAT0.00e+0000.00e+0000.00e+0000.00e+000RS0.00e+0000.00e+0000.00e+0000.00e+000RD0.00e+0000.00e+0000.00e+0000.00e+000GM4.63e-0044.60e-0047.23e-0053.04e-004GDS7.19e-0061.00e-0056.07e-0041.70e-005GMB1.77e-0041.45e-0041.80e-0055.88e-005GBD1.00e-0121.00e-0121.00e-0121.00e-012GBS1.00e-0121.00e-0121.00e-0121.00e-012CGS4.55e-0143.71e-0143.49e-0144.02e-014CGD7.08e-0157.28e-0153.18e-0145.91e-015CGB7.19e-0151.84e-0141.83e-0154.74e-015CBD2.60e-0143.44e-0144.10e-0142.47e-014CBS4.91e-0147.28e-0144.60e-0144.81e-014动态调试ex1_4*Maincircuit:Module0M1outb1N3GndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM2N3inGndGndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM3N2b3VddVddPMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM4outb2N2N2PMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24u*Endofmaincircuit:Module0.includeD:\Tanner\tanner\TSpice70\models\ml5_12.mdccompoutGnd2pFvb1b1Gndvbiavb2b2Gnd2.2vb3b3Gnd1vvddVddGnd5.0.PARAMvbia=3.3.tran2u6mvininGndsin2.50.510000.00.00.0.printtraninout动态调试结果ex1_40.00.51.01.52.02.53.03.54.04.55.05.56.0Time(ms)0.51.01.52.02.53.0Voltage(V)v(out)v(in)Module0动态调试结果分析ex1_4此输出明显失真调静态工作点电压由2.5伏降为2伏vininGndsin20.0510000.00.00.0调静态工作点电压0.00.51.01.52.02.53.03.54.04.55.05.56.0Time(ms)1.01.52.02.53.03.5Voltage(V)v(out)v(in)Module0察看电压增益ex1-5*Maincircuit:Module0M1outb1N3GndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM2N3inGndGndNMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM3N2b3VddVddPMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24uM4outb2N2N2PMOSL=2uW=22uAD=66pPD=24uAS=66pPS=24u*Endofmaincircuit:Module0.includeD:\Tanner\tanner\TSpice70\models\ml5_12.mdccompoutGnd2pFvb1b1Gndvbiavb2b2Gnd2.2vb3b3Gnd1vvddVddGnd5.0.PARAMvbia=3.3viningnd0.5AC290.acDEC51100MEG.printacvdb(out)vp(out)察看电压增益结果ex1-51101001k10k100k1M10M100MFrequency(Hz)-150-100-50050100150200VoltagePhase(deg)vp(out)Module01101001k10k100k1M10M100MFrequency(Hz)-110-100-90-80-70-60-50-40-30-20-10010VoltageMagnitude(dB)vdb(out)Module0放大器简单设计要点考虑电路要求,选择电路结构放大倍数不满足要求:结构,电参数、物理参数频率不满足要求:物理参数(电容)outinb1b2b3L=2uW=22uL=2uW=22uL=2uW=22uL=2uW=22u差分放大器设计outin1in1Vddvin1vm1vn1outvbiasV=2.0V=5.0V=0.8L=6uW=6uL=6uW=6uL=6uW=6uL=6uW=6uL=10uW=6uC=2pF一、共模电压扫描ex2-1*Maincircuit:opampccompoutGnd2pFmn1vn1vbiasGndGndnmosL=10uW=6umn2vm1in1vn1GndnmosL=6uW=6umn3outin1vn1GndnmosL=6uW=6u.mp1vm1vm1VddVddpmosL=6uW=6ump2outvm1VddVddpmosL=6uW=6uincludeml2_125.md*Endofmaincircuit:opampvbiasvbiasGnd0.8VddVddGnd5.0vin1in1Gnd2.5.dcvin1050.1.printdcin1out0.00.51.01.52.02.53.03.54.04.55.0vin1(V)-0.50.00.51.01.52.02.53.03.54.04.55.05.5Voltage(V)v(out)v(in1)opamp差模分析ex2-2*Maincircuit:opampccompoutGnd2pFmn1vn1vbiasGndGndnmosL=10uW=6umn2vm1in1vn1Gndn