From 4a9f361ab9ea6e2f2983822e853fcaefa33048cd Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 29 Jun 2021 11:27:33 -0700 Subject: [PATCH] Save raw file by default for Xyce. Change command debug level. --- compiler/characterizer/stimuli.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/compiler/characterizer/stimuli.py b/compiler/characterizer/stimuli.py index b247a8fb..d4990eed 100644 --- a/compiler/characterizer/stimuli.py +++ b/compiler/characterizer/stimuli.py @@ -374,10 +374,11 @@ class stimuli(): else: mpi_cmd = "" - cmd = "{0} {1} -o {3}timing.lis {2}".format(mpi_cmd, - OPTS.spice_exe, - temp_stim, - OPTS.openram_temp) + # Xyce can save a raw file while doing timing, so keep it around + cmd = "{0} {1} -r {3}timing.raw -o {3}timing.lis {2}".format(mpi_cmd, + OPTS.spice_exe, + temp_stim, + OPTS.openram_temp) valid_retcode=0 else: @@ -399,7 +400,7 @@ class stimuli(): spice_stdout = open("{0}spice_stdout.log".format(OPTS.openram_temp), 'w') spice_stderr = open("{0}spice_stderr.log".format(OPTS.openram_temp), 'w') - debug.info(3, cmd) + debug.info(2, cmd) retcode = subprocess.call(cmd, stdout=spice_stdout, stderr=spice_stderr, shell=True) spice_stdout.close()