Brady Etz
03/22/2024, 9:04 PMTim Edwards
03/22/2024, 9:09 PMinstramp
example project has an example of this. The gbw.sch
testbench produces three results: gain-bandwidth, gain margin, and phase margin. The simulate { ... }
block has a format
line that shows how many values are in the output line, and there's a null
for each one that should be ignored, and result
for the one that is important to that parameter.
Unfortunately, CACE is not yet smart enough to keep track of which testbenches have been run under which conditions, so it will run ngspice multiple times to get each result instead of using the same resulting data file multiple times. That's on my to-do list for CACE.Tim Edwards
03/22/2024, 9:10 PMBrady Etz
03/23/2024, 12:10 AMTim Edwards
03/23/2024, 12:27 AMBrady Etz
03/23/2024, 12:33 AMBrady Etz
03/23/2024, 12:34 AMTim Edwards
03/23/2024, 1:09 AMSIN()
is present on the voltage sources. If I add nodes net4
and net5
to the save
line, they can be plotted. So, nothing wrong with the sinusoidal voltages.Brady Etz
03/23/2024, 1:13 AMBrady Etz
03/23/2024, 1:14 AMTim Edwards
03/23/2024, 1:17 AMlqfp_parasitics
is not being generated. I don't see it in the netlist. It appears to be an independent netlist you've defined in a schematic and are calling from the testbench. I think you probably will have to generate its netlist manually.Brady Etz
03/23/2024, 1:18 AMBrady Etz
03/23/2024, 1:21 AMTim Edwards
03/23/2024, 1:21 AMsky130_be_ip__lsxo
.
I think that the issue may be that the lqfp_parasitics
is defined in the xschem directory, but it is being used directly in the testbench which is in the cace
directory, and cace
specifically does not add the xschem
directory to the path because it needs to avoid putting the netlist of the DUT directly into the testbench.
You may need to duplicate lqfp_parasitics.sch
in the cace
directory so that it can be found when generating the testbench netlists.Brady Etz
03/23/2024, 1:22 AMTim Edwards
03/23/2024, 1:24 AMTim Edwards
03/23/2024, 1:30 AMcace/tb_vol.spice
because moving around files did not trigger its "netlist out-of-date" check. Otherwise, all I did was to make a symbolic link to xschem/lqfp_parasitics.sch
from cace/
.Brady Etz
03/23/2024, 1:40 AM.spice
generated files, because it would have taken me ages to try that.Tim Edwards
03/23/2024, 2:41 AM