PSpice for TI入门,第一部分:分6步优化您的模拟配置文件
参考链接:https://e2e.ti.com/blogs_/b/analogwire/posts/pspice-for-ti-optimize-simulation-profile
这个指引是关于,如何在已经有一个项目文件之后,修改和优化仿真配置。
第一步:新建一个仿真文件
在Pspice下选择“New Simulation Profile”以新建一个仿真文件,将其命名。命名时应该选择一个有意义的名字,例如把瞬态分析( transient analysis)文件命名为“trans”。
新建了仿真文件后,会自动打开一个称为Simulation Settings dialog的窗口。在这个窗口我们要按需进行各种配置。
第二步:选择分析类型
在Simulation Settings dialog的最左栏选择Analysis之后,在中间栏的Analysis Type选择需要的分析类型。可供选择的分析类型及应用场景如下:
Time Domain (Transient): Select this option if you want to track voltages, currents and digital states over time.
在需要追踪动态电压、电流和数字状态时选择该项。
DC Sweep: Select this option if you want to calculate the bias point of a circuit or to sweep DC values by simulating the circuit many times.
在需要计算电路bias point或者需要多次扫描直流值时使用。
AC Sweep/Noise: Select this option if you are interested in small-signal response of the circuit (linearized around the bias point) when sweeping one or more sources over a range of frequencies.
在对一定频率范围内扫描一或多个信号源时的弱信号相应感兴趣时使用。
Bias Point: Select this option if you want node voltages and currents through the devices in the circuit.
当想知道通过设备的节点电压和节点电流时使用。
第三步:为模拟配置正确文件
在Simulation Settings dialog的最左栏选择Configuration Files后,可以看见中间栏有Stimulus,Library和Include三个类。
Selecting Stimulus lets you add analog or digital input signals or stimuli for use in simulation.
选择Stimulus可以添加数字或模拟输入信号或是刺激。
Selecting Library lets you add the libraries containing the PSpice models.
选择Library可以添加含有PSpice的模型的库。
Selecting Include lets you add PSpice commands that you want loaded before loading the circuit for analysis.
选择Include可以添加PSpice命令以加载在被分析电路的加载之前。
这仨必须设置正确以保证文件跑仿真的时候顺利。
第四步:微调选项
在Simulation Settings dialog的最左栏选择Option,可以在窗口对分析选项进行微调;例如speed level (SPEED_LEVEL), relative tolerance (RELTOL), absolute tolerance (ABSTOL) 等。
一般用默认设置就行了。
第五步:优化模拟数据
在Simulation Settings dialog的最左栏选择Data Collections,可以修改选项以限制捕获的模拟数据。例如在Data Collection option下的Voltage选择“At Markers Only”而不是“All”,只收集标记点的电压。
第六步:设置结果显示
在Simulation Settings dialog的最左栏选择Probe Window选项将允许您设置如何查看结果。这些选项不言自明。例如,默认情况下仅在模拟完成运行时显示探针窗口;但在模拟过程中,有一个选项可保持探针窗口打开,以便在模拟过程中动态更新波形(说的就是Display probe window下的“during Simulation”选项)。