OpenRAM/compiler/options.py

39 lines
1.3 KiB
Python
Raw Normal View History

2016-11-08 18:57:35 +01:00
import optparse
import getpass
import os
2016-11-08 18:57:35 +01:00
class options(optparse.Values):
"""
Class for holding all of the OpenRAM options.
"""
2016-11-08 18:57:35 +01:00
# This is the technology directory.
openram_tech = ""
# This is the name of the technology.
tech_name = ""
# This is the temp directory where all intermediate results are stored.
openram_temp = "/tmp/openram_{0}_{1}_temp/".format(getpass.getuser(),os.getpid())
2016-11-08 18:57:35 +01:00
# This is the verbosity level to control debug information. 0 is none, 1
# is minimal, etc.
debug_level = 0
# This determines whether LVS and DRC is checked for each submodule.
check_lvsdrc = True
# Variable to select the variant of spice (hspice or ngspice right now)
spice_version = "hspice"
# Should we fall back if we can't find our preferred spice?
force_spice = False
2016-11-08 18:57:35 +01:00
# Should we print out the banner at startup
print_banner = True
# The Calibre executable being used which is derived from the user PATH.
calibre_exe = ""
# The spice executable being used which is derived from the user PATH.
spice_exe = ""
# Run with extracted parasitics
use_pex = False
2016-11-08 18:57:35 +01:00
# Trim noncritical memory cells for simulation speed-up
trim_noncritical = False
# Define the output file paths
out_path = ""
# Define the output file base name
out_name = ""