I am running OpenLane without Docker since I'm doi...
# sky130
d
I am running OpenLane without Docker since I'm doing mostly analog design. When I try to run "./flow.tcl -design spm" I get the following error: "[ERROR STA-0402] repair_design -slew_margin is not a known keyword or flag. Error: resizer.tcl, 62 STA-0402 [ERROR]: during executing: "openroad -exit /mnt/HDD_WD/OpenLane/scripts/openroad/resizer.tcl |& tee >&@stdout /mnt/HDD_WD/OpenLane/designs/spm/runs/RUN_2021.12.12_15.55.21/logs/placement/8-resizer.log" [ERROR]: Exit code: 1 [ERROR]: Last 10 lines: child process exited abnormally" I'm running Version: 2021.12.10_01.41.40 All the fixes I found here were for the docker image, does anybody have the fix for the setup without it?
d
It's saying locally installed openroad tool is not same version as in docker
normally openroad tools are frequently changing some of the command
d
Yes it is clear that "-slew_margin" is not a valid flag anymore but how do I update the scripts, I did "git checkout master" and "git pull" but it didn't help
m
@Domagoj Tomić Did you try updating openroad?
d
@User I cloned it again, just to be sure, build process was again successful but I'am getting this other error: "Traceback (most recent call last): File "/mnt/HDD_WD/OpenLane/scripts/write_powered_def.py", line 182, in <module> odb.dbITerm_connect(VDD_ITERM, DEFAULT_VDD) AttributeError: module 'odb' has no attribute 'dbITerm_connect' [ERROR]: during executing: "openroad -python /mnt/HDD_WD/OpenLane/scripts/write_powered_def.py -d /mnt/HDD_WD/OpenLane/designs/spm/runs/RUN_2021.12.13_09.33.57/results/routing/spm.def -l /mnt/HDD_WD/OpenLane/designs/spm/runs/RUN_2021.12.13_09.33.57/tmp/merged.lef --power-port VPWR --ground-port VGND --powered-netlist {} -o /mnt/HDD_WD/OpenLane/designs/spm/runs/RUN_2021.12.13_09.33.57/tmp/routing/27-spm.powered.def |& tee >&@stdout /mnt/HDD_WD/OpenLane/designs/spm/runs/RUN_2021.12.13_09.33.57/logs/routing/27-write_powered_verilog.log" [ERROR]: Exit code: 1 [ERROR]: Last 10 lines: child process exited abnormally" OpenLane is up to date with the master, so I have no clue how to fix this.
m
Be aware that updating open*lane* only updates open*road* if you are using docker, if I understand correctly. If you are not using docker, you will most likely need to update openroad, magic, netgen, etc. yourself.
d
@Mitch Bailey I have found that post, but I'm not sure what are the implications, do I have the old version of the odb module or what, I must confess I haven't worked with Python much. I have updated OpenRoad (build from scratch as I said) and OpenLane, and also have built aforementioned tools from source.
m
I think the version for each of the programs that openlane is expecting is stored in
dependencies/tool_metadata.yml
. Does the version of your natively compiled programs match these?
d
@Mitch Bailey yes, all the dependencies are met and I have updated OpenROAD and OpenLane yesterday. I have additionally examined the git issue (https://github.com/The-OpenROAD-Project/OpenLane/issues/753), and if I understand it correctly, they have updated the OpenDB API (https://github.com/The-OpenROAD-Project/OpenROAD/tree/master/src/odb) which broke the scripts like "write_powered_def.py" which call old type of methods. So that would mean that either I have to wait for the issue to be resolved/closed and then update OpenLane again, or to patch it myself, or go to an earlier tag release of OpenLane and OpenROAD?
m
Sounds like you're on the right track. Sorry I can't be of more help.