Hi all. I have downloaded openlane2 as per <https:...
# openlane-2
d
Hi all. I have downloaded openlane2 as per https://openlane2.readthedocs.io/en/latest/getting_started/common/nix_installation/installation_linux.html. I then try to run an example using: openlane --run-example spm After this it errors out with the following message: PermissionError: [Errno 13] Permission denied: '/home/slice/pdk/SW130/share/pdk/volare' This is most probably due to the fact I havent used volare to install my pdk. Instead it is installed at: /home/slice/pdk/SW130/share/pdk/sky130A I guess I just have to change a pointer to this above path? Is this correct? If so, how do I proceed? Thanks, Diarmuid
v
Are you able to run following command in terminal?
docker run hello-world
d
Hi @Vijayan Krishnan. Below is what I see when putting the following command into the terminal (in same dir openlane2 is installed).
I never needed to install Docker before, presumably because I didnt go the container pdk route in Volare.
d
@Vijayan Krishnan: I have installed docker and when I type "sudo docker run hello-world" I get an output to indicate the installation was successful (see below). However, when I go back into my openlane2 dir and run "`openlane --smoke-test"` I get the same permissions error as shown below. I don't want openlane to be reading from the /pdk/volare lib since it is missing various dirs. Instead I want it to be reading from the pdk install that I built myself (e.g. spice file location = /home/slice/pdk/SW130/share/pdk/sky130A/libs.tech/combined/sky130.lib.spice). Therefore, how do I setup openlane to use the above pdk path and not the pdk/volare one? Thanks
v
d
@Vijayan Krishnan: I made the changes to make Docker availabe without root. I confirmed it was ok with the docker run hello-world command. Then ran openlane --smoke-test. Still the same permissions error. Some questions: 1. You mention install openlane. I already had it installed so is this necessary? If so, must I uninstall first? Is there a specific way to uninstall openlane2 in such a scenario? 2. In my .bashrc file I have the following PDK_ROOT settings: export PDK_ROOT=/home/slice/pdk/ SW130/share/pdk export PDK=sky130A This has always worked to direct my analog environment towards the correct PDK. Whatever way openlane2 is set up, it seems it is ignoring this. => Where exactly do I define PDK_ROOT so that openlane2 will see it? 3. It seems I need to install openlane2 via the Docker based installation flow. I had originally done it via the Nix based flow it seems. I did this since the Nix based flow was reccomended. Is this not the case? Is there an issue installing through the Nix based flow? Just trying to understand the general flow with this question so I can guide others. Thanks, Diarmuid
Thanks @Vijayan Krishnan. After removing the openlane2 dir and cloning again I run the command: openlane --run-example spm --manual-pdk This runs the example using the pdk I have manually built. After this step I get a message the smoke test is passed. Thanks again for your help to get this installed for me. Much appreciated!