From 94c480911b9f3027a647b4f076494f8412c9b8ea Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 19 Jun 2020 07:09:15 -0700 Subject: [PATCH] ngspice raw save doesn't work with measures --- compiler/characterizer/stimuli.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/compiler/characterizer/stimuli.py b/compiler/characterizer/stimuli.py index 70152a54..11dc449a 100644 --- a/compiler/characterizer/stimuli.py +++ b/compiler/characterizer/stimuli.py @@ -302,10 +302,12 @@ class stimuli(): OPTS.openram_temp) valid_retcode=0 else: - # ngspice 27+ supports threading with "set num_threads=4" in the stimulus file or a .spiceinit - cmd = "{0} -b -r {2}timing.raw -o {2}timing.lis {1}".format(OPTS.spice_exe, - temp_stim, - OPTS.openram_temp) + # ngspice 27+ supports threading with "set num_threads=4" in the stimulus file or a .spiceinit + # Measurements can't be made with a raw file set in ngspice + # -r {2}timing.raw + cmd = "{0} -b -o {2}timing.lis {1}".format(OPTS.spice_exe, + temp_stim, + OPTS.openram_temp) # for some reason, ngspice-25 returns 1 when it only has acceptable warnings valid_retcode=1