Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions compiler/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,12 @@ def import_tech():
sys.path.append(tech_path)
debug.info(1, "Adding technology path: {}".format(tech_path))

# Validate tech_name param
techname_lower = OPTS.tech_name.lower()
if (techname_lower is None) or (techname_lower!="sky130" and techname_lower!="scn3m_subm" and techname_lower!="scn4m_subm" and techname_lower!="freepdk45") :
debug.error("tech_name in config file should be sky130|scn3m_subm|scn4m_subm|freepdk45")
quit()

# Import the tech
try:
tech_mod = __import__(OPTS.tech_name)
Expand Down