From 424c7b7e64710b3ba28ceebbc2cf4319604a4bd8 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 31 May 2017 08:12:17 -0700 Subject: [PATCH 1/2] Made back-annotation and analytical modelling boolean options. Default is false. --- compiler/globals.py | 8 ++++---- compiler/options.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/globals.py b/compiler/globals.py index 489783dd..748ab32f 100644 --- a/compiler/globals.py +++ b/compiler/globals.py @@ -33,7 +33,7 @@ def parse_args(): global OPTS option_list = { - optparse.make_option("-b", "--backannotated", dest="run_pex", + optparse.make_option("-b", "--backannotated", action="store_true", dest="run_pex", help="back annotated simulation for characterizer"), optparse.make_option("-o", "--output", dest="out_name", help="Base output file name.", metavar="FILE"), @@ -50,10 +50,10 @@ def parse_args(): optparse.make_option("-s", "--spiceversion", dest="spice_version", help="Spice simulator name"), # TODO: Why is this -f? - optparse.make_option("-f", "--trim_noncritical", dest="trim_noncritical", + optparse.make_option("-f", "--trim_noncritical", action="store_true", dest="trim_noncritical", help="Trim noncritical memory cells during simulation"), - optparse.make_option("-a", "--analyticaldelay", dest="analytical_delay", - help="Use analytical model to calculate delay or not") + optparse.make_option("-a", "--analytical", action="store_true", dest="analytical_delay", + help="Use analytical model to calculate delay") } # -h --help is implicit. diff --git a/compiler/options.py b/compiler/options.py index 1155ffbb..670517e0 100644 --- a/compiler/options.py +++ b/compiler/options.py @@ -36,4 +36,4 @@ class options(optparse.Values): out_path = "" # Define the output file base name out_name = "" - analytical_delay = True + analytical_delay = False From dc375ff1c382ba8bfb5da66d97088d9e9eabd675 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 31 May 2017 12:16:49 -0700 Subject: [PATCH 2/2] Added setup scripts to quickly set current local repo as OPENRAM_HOME and OPENRAM_TECH --- setpaths.csh | 8 ++++++++ setpaths.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 setpaths.csh create mode 100755 setpaths.sh diff --git a/setpaths.csh b/setpaths.csh new file mode 100755 index 00000000..69f736d4 --- /dev/null +++ b/setpaths.csh @@ -0,0 +1,8 @@ +#!/bin/csh +# This is a csh utility script to set the paths to the current +# directory of OpenRAM. It must be sourced in the local directory +# like this: +# source setpaths.csh + +setenv OPENRAM_HOME "`pwd`/compiler" +setenv OPENRAM_TECH "`pwd`/technology" diff --git a/setpaths.sh b/setpaths.sh new file mode 100755 index 00000000..44485f14 --- /dev/null +++ b/setpaths.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# This is a bash utility script to set the paths to the current +# directory of OpenRAM. It must be sourced in the local directory +# like this: +# source setpaths.sh + +export OPENRAM_HOME="`pwd`/compiler" +export OPENRAM_TECH="`pwd`/technology"