Make sram_compiler.py use $OPENRAM_HOME if library isn't installed

This commit is contained in:
Eren Dogan 2022-11-06 21:56:40 -08:00
parent 845f32805f
commit 6fe54c9c76
1 changed files with 5 additions and 1 deletions

View File

@ -16,9 +16,13 @@ a LEF (.lef) file for preliminary P&R (real one should be from layout)
a Liberty (.lib) file for timing analysis/optimization
"""
import os
import sys
import datetime
import openram
try:
import openram
except:
sys.path.append(os.getenv("OPENRAM_HOME"))
import globals as g
(OPTS, args) = g.parse_args()