From a2b7636e584d5942fe6cbaa3d20ae7e96d5791eb Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 15 Nov 2016 10:13:57 -0800 Subject: [PATCH] Modify banner to output temp path --- compiler/globals.py | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/compiler/globals.py b/compiler/globals.py index b18d81cc..2d8a9667 100644 --- a/compiler/globals.py +++ b/compiler/globals.py @@ -14,19 +14,6 @@ import importlib # Current version of OpenRAM. VERSION = "1.0" -# Output banner for file output and program execution. -BANNER = """\ -############################################################## -# # -# OpenRAM Compiler v""" + VERSION + """ # -# # -# VLSI Design Automation Lab # -# UCSC CE Department # -# # -# VLSI Computer Architecture Research Group # -# Oklahoma State University ECE Department # -# # -##############################################################\n""" USAGE = "usage: openram.py [options] \n" @@ -81,6 +68,25 @@ def parse_args(): def get_opts(): return(OPTS) +def print_banner(): + """ Conditionally print the banner to stdout """ + global OPTS + if not OPTS.print_banner: + return + + print "|==============================================================================|" + name = "OpenRAM Compiler v"+VERSION + print "|=========" + name.center(60) + "=========|" + print "|=========" + " ".center(60) + "=========|" + print "|=========" + "VLSI Design and Automation Lab".center(60) + "=========|" + print "|=========" + "University of California Santa Cruz CE Department".center(60) + "=========|" + print "|=========" + " ".center(60) + "=========|" + print "|=========" + "VLSI Computer Architecture Research Group".center(60) + "=========|" + print "|=========" + "Oklahoma State University ECE Department".center(60) + "=========|" + print "|=========" + " ".center(60) + "=========|" + print "|=========" + OPTS.openram_temp.center(60) + "=========|" + print "|==============================================================================|" + def init_openram(config_file): """Initialize the technology, paths, simulators, etc."""