From 014c95f761fa77e579e7cafee3902716d519c9b5 Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 1 Apr 2021 16:48:15 -0700 Subject: [PATCH] Add accounting output to ngspice --- compiler/characterizer/functional.py | 2 +- compiler/characterizer/stimuli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/characterizer/functional.py b/compiler/characterizer/functional.py index dad4fd96..35444b15 100644 --- a/compiler/characterizer/functional.py +++ b/compiler/characterizer/functional.py @@ -439,7 +439,7 @@ class functional(simulation): measure_name = "V{0}_{1}ck{2}".format(dout_port, bit, check) signal_name = "{0}_{1}".format(dout_port, bit) voltage_value = self.stim.get_voltage(word[num_bits - bit - 1]) - + self.stim.add_comment("* CHECK {0} {1} = {2} time = {3}".format(signal_name, measure_name, voltage_value, diff --git a/compiler/characterizer/stimuli.py b/compiler/characterizer/stimuli.py index 0895d57e..d60cab85 100644 --- a/compiler/characterizer/stimuli.py +++ b/compiler/characterizer/stimuli.py @@ -246,7 +246,7 @@ class stimuli(): # which is more accurate, but slower than the default trapezoid method # Do not remove this or it may not converge due to some "pa_00" nodes # unless you figure out what these are. - self.sf.write(".OPTIONS POST=1 RELTOL={0} PROBE method=gear\n".format(reltol)) + self.sf.write(".OPTIONS POST=1 RELTOL={0} PROBE method=gear ACCT\n".format(reltol)) elif OPTS.spice_name == "spectre": self.sf.write("simulator lang=spectre\n") if OPTS.use_pex: