[Question in OpenLane 2/OpenRoad] I'm studying Op...
# openlane-2
w
[Question in OpenLane 2/OpenRoad] I'm studying OpenRoad and for that I was using the OpenLane 2 sample project (spm). I'm able to open openroad using the command in openlane
Copy code
openlane --last-run --flow OpenInOpenROAD config.json
However, if I go to the final/odb folder and try to open the db file there using the commands
Copy code
openroad
read_db spm.odb
The error below occurs. Does anyone know what I'm doing wrong to not be able to open the file directly through openroad. It's worth mentioning that I updated openroad and openrlane 2, afraid of versioning problems, but the error continues to appear.
t
Are you running openlane 2 natively or using nix or docker ?
Usually when getting a segfault like that, it means you're using a diferent version of openroad than the one used to build the DB ...
w
@tnt I'm using nix. I updated both openlane and openroad because I knew this issue could occur due to versioning. Is there any way I can find out what version of openroad openlane is using?
t
in the openlane2/nix directory there should be an openroad.nix file
l
@William Carrara Orlato You can run OpenROAD directly from Nix:
Copy code
$ nix shell github:efabless/openlane2#openroad
warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
$ openroad 
OpenROAD b16bda7e82721d10566ff7e2b68f1ff0be9f9e38 
Features included (+) or not (-): +Charts +GPU +GUI +Python
This program is licensed under the BSD-3 license. See the LICENSE file for details.
Components of this program may be licensed under more restrictive licenses which must be honored.
openroad> exit
If you have cloned OpenLane 2, you can simply run
nix shell .#openroad
in the repository.
w
Thank you very much for your help. I managed to open it using nix-shell directly to open openroad. I didn't know this was possible.
l
That's great to hear, you're welcome! I am also still learning what Nix can do 😄