From 19ce6de3cccd23cbfe70bb94c76b3f95d462677b Mon Sep 17 00:00:00 2001 From: jeffdi Date: Tue, 12 Sep 2023 07:23:34 -0700 Subject: [PATCH] remove hard-coded sky130A in rcfile path from scripts --- scripts/compositor.py | 3 ++- scripts/generate_fill.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/compositor.py b/scripts/compositor.py index df05b215..a17d962c 100755 --- a/scripts/compositor.py +++ b/scripts/compositor.py @@ -149,7 +149,8 @@ if __name__ == '__main__': magpath = mag_dir_path # rcfile = magpath + '/.magicrc' pdk_root = os.getenv("PDK_ROOT") - rcfile = pdk_root + '/sky130A/libs.tech/magic/sky130A.magicrc' + pdk = os.getenv("PDK") + rcfile = pdk_root + '/' + pdk + '/libs.tech/magic/' + pdk + '.magicrc' gdspath = gds_dir_path diff --git a/scripts/generate_fill.py b/scripts/generate_fill.py index 9d9a90ca..eb25814f 100755 --- a/scripts/generate_fill.py +++ b/scripts/generate_fill.py @@ -155,7 +155,8 @@ if __name__ == '__main__': magpath = user_project_path + '/mag' # rcfile = magpath + '/.magicrc' pdk_root = os.getenv("PDK_ROOT") - rcfile = pdk_root + '/sky130A/libs.tech/magic/sky130A.magicrc' + pdk = os.getenv("PDK") + rcfile = pdk_root + '/' + pdk + '/libs.tech/magic/' + pdk + '.magicrc' if not os.path.isfile(rcfile): rcfile = None