Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dffram: make volare optional #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all 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
7 changes: 4 additions & 3 deletions dffram.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
try:
import click
import yaml
import volare
except ImportError:
print(
"You need to install dependencies: pip3 install --user --upgrade --no-cache-dir -r ./requirements.txt"
Expand Down Expand Up @@ -146,7 +145,6 @@ def prep(local_pdk_root):
global pdk_klayout_dir, pdk_magic_dir, pdk_openlane_dir
pdk_root = os.path.abspath(local_pdk_root)
pdk_path = os.path.join(pdk_root, pdk)
volare.enable(pdk_root=local_pdk_root, pdk=pdk_family, version=pdk_version)

pdk_tech_dir = os.path.join(pdk_path, "libs.tech")
pdk_ref_dir = os.path.join(pdk_path, "libs.ref")
Expand Down Expand Up @@ -477,7 +475,7 @@ def openlane_harden(
"-p",
"--pdk-root",
required=False,
default="./pdks",
default=os.getenv('PDK_ROOT', './pdks'),
help="Optionally override the used PDK root",
)
@click.option("-O", "--output-dir", default="./build", help="Output directory.")
Expand Down Expand Up @@ -690,6 +688,9 @@ def flow(
def i(ext=""):
return f"{build_folder}/{design}{ext}"

if not os.getenv('PDK_ROOT'):
import volare
volare.enable(pdk_root=local_pdk_root, pdk=pdk_family, version=pdk_version)
prep(pdk_root)

start = time.time()
Expand Down