Chintha Naveen
06/12/2024, 6:38 AMMitch Bailey
06/12/2024, 8:24 AMChintha Naveen
06/12/2024, 8:25 AMChintha Naveen
06/12/2024, 8:26 AMSaptarshi Ghosh
06/12/2024, 10:12 AMSaptarshi Ghosh
06/12/2024, 10:13 AMPDK_ROOT
as environment variable in your .bashrc
and source it
Then use something like
import os; pdk_root=Path(f"{os.getenv('PDK_ROOT')}/")
everywhere where the hard coded parts were written.
In my Case, I had to modify
a)
-/openfasoc/generators/glayout/glayout/flow/pdk/sky130_mapped/sky130_mapped.py in which pdk_root = Path('/usr/bin/miniconda3/share/pdk/') which is replaced by import os; pdk_root=Path(f"{os.getenv('PDK_ROOT')}/")
b) in the test_glayout.py
file change the array to
if pdk_root is None:
print("using default pdk_root: /usr/bin/miniconda3/share/pdk/")
else:
print('using provided pdk_root')
self.pdk_files['pdk_root'] = pdk_root
Not Recommended at all if you don't know your way around Linux.Saptarshi Ghosh
06/12/2024, 10:23 AMChintha Naveen
06/12/2024, 1:09 PMChetanya Goyal
06/12/2024, 1:33 PMChetanya Goyal
06/12/2024, 1:34 PMSaptarshi Ghosh
06/12/2024, 1:37 PM/usr/bin/miniconda3/share/pdk
That would be good right?Chetanya Goyal
06/12/2024, 1:39 PMstr
or pathlib.Path
variable wherever pdk is required to be coded inmehdi
06/12/2024, 2:21 PMSaptarshi Ghosh
06/12/2024, 2:32 PMstr
or Pathlib.Path
didn't worked. The reason is the hard-coded path in the sky130_mapped.py
Which hasn't been setup with the path input. We can continue in my QA too which has steps which lead me to aboveSaptarshi Ghosh
06/12/2024, 2:34 PMmehdi
06/12/2024, 2:35 PMSaptarshi Ghosh
06/12/2024, 2:37 PMmehdi
06/12/2024, 2:40 PM