remove hard-coded sky130A in rcfile path from scripts

This commit is contained in:
jeffdi 2023-09-12 07:23:34 -07:00
parent 909998bb9d
commit 19ce6de3cc
2 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,8 @@ if __name__ == '__main__':
magpath = mag_dir_path magpath = mag_dir_path
# rcfile = magpath + '/.magicrc' # rcfile = magpath + '/.magicrc'
pdk_root = os.getenv("PDK_ROOT") 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 gdspath = gds_dir_path

View File

@ -155,7 +155,8 @@ if __name__ == '__main__':
magpath = user_project_path + '/mag' magpath = user_project_path + '/mag'
# rcfile = magpath + '/.magicrc' # rcfile = magpath + '/.magicrc'
pdk_root = os.getenv("PDK_ROOT") 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): if not os.path.isfile(rcfile):
rcfile = None rcfile = None