Colin Howarth
05/29/2021, 7:28 PMHieu Bui
05/30/2021, 2:44 AMdocker run -it -v $OPENLANE_ROOT:/openLANE_flow -v $PDK_ROOT:$PDK_ROOT -v $PWD/..:/project -e PDK_ROOT=$PDK_ROOT -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -u $(id -u $USER):$(id -g $USER) efabless/openlane:current
For question 1, I think that it is not normal. If you are not good at building softwares, you can use the docker images. Just learn how to use docker.$ ln -s $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc .magicrc
$ magic -T $PDK_ROOT/sky130A/libs.tech/magic/sky130A.tech your-magic-design.mag
Klayout does not work in GUI mode with the above setup.docker run -it -v $OPENLANE_ROOT:/openLANE_flow -v $PDK_ROOT:$PDK_ROOT -v $PWD/..:/project -e PDK_ROOT=$PDK_ROOT -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e QT_GRAPHICSSYSTEM="native" -u $(id -u $USER):$(id -g $USER) efabless/openlane:current
For this question:
I tried ./flow.tcl -interactive -d mydesign and then run_magic but it says it can't read ::env(PDK)...
You need to 'cd' to cd /project/openlane, then run this command. It would load the PDK sucessfully.Colin Howarth
05/30/2021, 11:56 PMHieu Bui
05/31/2021, 12:28 AMMitch Bailey
05/31/2021, 12:42 AMcd openlane/docker_build
2 open docker/magic/Dockerfile
and change the ARG MAGIC_COMMIT=e4bebffeb49fde401e8f531a01feb4c3ef6eb9db
line to the the revision you want to install
3 make build-magic
4 make merge