diff --git a/compiler/openram.py b/compiler/openram.py index ba344262..1bfbb125 100755 --- a/compiler/openram.py +++ b/compiler/openram.py @@ -22,6 +22,10 @@ import re import importlib import globals +global OPTS + +(OPTS, args) = globals.parse_args() + # These depend on arguments, so don't load them until now. import debug @@ -30,11 +34,11 @@ if len(args) < 1: print globals.USAGE sys.exit(2) -globals.init_openram(args[0]) - if OPTS.print_banner: print globals.BANNER +globals.init_openram(args[0]) + # Check if all arguments are integers for bits, size, banks if type(OPTS.config.word_size)!=int: debug.error("{0} is not an integer in config file.".format(OPTS.config.word_size))