From aa4768bf87c6b26ed824ba8a9d7ff257cc8e4527 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 21 Nov 2017 13:04:18 -0800 Subject: [PATCH] Add time info for spice simulation calls. --- compiler/characterizer/stimuli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/characterizer/stimuli.py b/compiler/characterizer/stimuli.py index ec735abe..4765f66c 100644 --- a/compiler/characterizer/stimuli.py +++ b/compiler/characterizer/stimuli.py @@ -274,7 +274,8 @@ def write_supply(stim_file): def run_sim(): """Run hspice in batch mode and output rawfile to parse.""" temp_stim = "{0}stim.sp".format(OPTS.openram_temp) - + import datetime + start_time = datetime.datetime.now() from characterizer import spice_exe if OPTS.spice_version == "xa": @@ -307,5 +308,9 @@ def run_sim(): if (retcode > valid_retcode): debug.error("Spice simulation error: " + cmd, -1) + else: + end_time = datetime.datetime.now() + delta_time = round((end_time-start_time).total_seconds(),1) + debug.info(2,"*** Spice: {} seconds".format(delta_time))