From fd748b4fe421f46b57fdd5b4f0a8800208075911 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 5 Jan 2018 08:32:23 -0800 Subject: [PATCH] Move info messages about modes to better locations. --- compiler/characterizer/__init__.py | 4 +--- compiler/openram.py | 20 +++++++++----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/compiler/characterizer/__init__.py b/compiler/characterizer/__init__.py index b665f335..3bf4829a 100644 --- a/compiler/characterizer/__init__.py +++ b/compiler/characterizer/__init__.py @@ -10,9 +10,7 @@ debug.info(2,"Initializing characterizer...") spice_exe = "" -if OPTS.analytical_delay: - debug.info(1,"Using analytical delay models (no characterization)") -else: +if not OPTS.analytical_delay: if OPTS.spice_name != "": spice_exe=find_exe(OPTS.spice_name) if spice_exe=="": diff --git a/compiler/openram.py b/compiler/openram.py index 44bcaed1..d58191e0 100755 --- a/compiler/openram.py +++ b/compiler/openram.py @@ -64,16 +64,6 @@ print("Output files are " + OPTS.output_name + ".(sp|gds|v|lib|lef)") print("Technology: {0}".format(OPTS.tech_name)) print("Word size: {0}\nWords: {1}\nBanks: {2}".format(word_size,num_words,num_banks)) -if not OPTS.check_lvsdrc: - print("DRC/LVS/PEX checking is disabled.") - -if OPTS.analytical_delay: - print("Using analytical delay models (no characterization)") -else: - print("Performing simulation-based characterization with {}".format(OPTS.spice_name)) - if OPTS.trim_netlist: - print("Trimming netlist to speed up characterization (sacrificing some accuracy).") - # only start importing modules after we have the config file import verify import sram @@ -81,7 +71,8 @@ import sram start_time = datetime.datetime.now() last_time = start_time print_time("Start",datetime.datetime.now()) - +if not OPTS.check_lvsdrc: + print("DRC/LVS/PEX checking is disabled.") # import SRAM test generation s = sram.sram(word_size=word_size, num_words=num_words, @@ -110,6 +101,13 @@ if OPTS.use_pex: from characterizer import lib libname = OPTS.output_path + s.name + ".lib" print("LIB: Writing to {0}".format(libname)) +if OPTS.analytical_delay: + print("Using analytical delay models (no characterization)") +else: + if OPTS.spice_name!="": + print("Performing simulation-based characterization with {}".format(OPTS.spice_name)) + if OPTS.trim_netlist: + print("Trimming netlist to speed up characterization.") lib.lib(libname,s,sram_file) last_time=print_time("Characterization", datetime.datetime.now(), last_time)