文档详情

第五章Tspice模拟.ppt

发布:2018-02-16约6.04千字共61页下载文档
文本预览下载声明
电路模拟-Tspice Spice(Simulation Program with Integrated Circuit Emphasis)。通过求解描述晶体管、电阻、电容以及电压源等分量的非线性微分方程,对电路进行分析。用来设计和仿真数字和模拟电路的工具。 有源元件无源元件 * Waveform probing commands .probe *保存所有节点电压等到一个二进制文件 .options probefilename=AC_RC.dat *输出文件 + probesdbfile=“E:\TannerT\tanner\SEditexample\AC_RC.sdb“ *输入文件 + probetopmodule=Module0“ * Main circuit: Module0 C1 b Gnd 10pF R2 a b 50 TC=0.0, 0.0 v3 a Gnd 1 AC 1.0 0.0 * End of main circuit: Module0 .op .ac dec 100 1k 100000k .print ac vdb(b,a) 4、瞬态特性:求电路的时域响应,可作大信号非线性电路分析。在给定激励信号情况下求电路输出的时间响应、延迟特性等。 .probe .options probefilename=invert3.dat + probesdbfile=E:\TannerT\tanner\S-Edit\tutorial\schematic\invert3.sdb + probetopmodule=invert3 * Main circuit: invert3 c2 out Gnd 800ff .include ml2_125.md m1n out in Gnd Gnd nmos L=5u W=8u m1p out in Vdd Vdd pmos L=5u W=12u .tran 2n 600n .print tran in out vdd Vdd Gnd 3.0 vin in Gnd pwl (0ns 0V 100ns 0V 105ns 3V 200ns 3V 205ns 0V 300ns + 0V 305ns 3V 400ns 3V 405ns 0V 500ns 0V 505ns 3V 600ns 3V) * End of main circuit: invert3 参数分析 * Waveform probing commands .probe .options probefilename=ring.dat + probesdbfile=E:\TannerT\tanner\S-Edit\tutorial\schematic\ring.sdb + probetopmodule=ring .SUBCKT inv in out Gnd Vdd c2 out Gnd 800ff m1p out in Vdd Vdd pmos L=5u W=12u mn1 out in Gnd Gnd nmos L=5u W=8u .ENDS * Main circuit: ring cinv1 a7 Gnd 400ff .include ml2_125.md Xinv1 a1 a2 Gnd Vdd inv Xinv2 a2 a3 Gnd Vdd inv Xinv3 a3 a4 Gnd Vdd inv Xinv4 a4 a5 Gnd Vdd inv Xinv5 a5 a6 Gnd Vdd inv Xinv6 a6 a7 Gnd Vdd inv Xinv7 a7 a1 Gnd Vdd inv .print tran a1 .print tran a2 .print tran a7 .tran/powerup 1n 800n vdd Vdd Gnd 3.0 * End of main circuit: ring .param cap=800ff .print tran a1 .step cap 200f 1000f 200f //扫描电容,电容和周期的关系 .tran/powerup 1n 800n//powerup选项消除DC影响 .measure测试不同电容下的周期、延迟时间和脉宽。 .measure tran period trig v(a2) val=3.0 fall=2 targ v(a2) val=3.0 fall=3 说明过渡周期,a2节点电压3V开始,第二个下降边到第三下降边。 .measure tran pulsewidth trig v(a2) val=1.5 rise=2 targ v(a2) val=1.5 fall=2 .measure tran timedelay trig v(a2) val=3.
显示全部
相似文档