https://open-source-silicon.dev logo
w

Wajeh ul hasan

09/30/2020, 2:58 PM
Hi, can I run magic inside the docker to view the layout. It gives a display error when run inside the docker.
m

Matt Venn

09/30/2020, 3:42 PM
run it outside, and tell it where the tech file is
w

Wajeh ul hasan

09/30/2020, 3:59 PM
So it means we cannot use magic present inside the openlane folder? We have to install another magic separately solely for the purpose of viewing the layout generated?
m

Matt Venn

09/30/2020, 3:59 PM
as far as I know.
j

Jecel Assumpção Jr

09/30/2020, 4:23 PM
Wouldn't it just be a matter of setting DISPLAY correctly inside the docker (and perhaps chanding permissions outside of it)?
m

Matt Venn

09/30/2020, 4:29 PM
hm, I just tried this: docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/matt/work/kneesonic:/openLANE_flow -v /home/matt/work/asic-workshop/pdks/:/home/matt/work/asic-workshop/pdks/ -e PDK_ROOT=/home/matt/work/asic-workshop/pdks/ -e DISPLAY=${DISPLAY} -u 1000:1000 openlane:rc2
and magic failed with a different error
image.png
it would be cool to have it working from inside. I already had it installed on my system (and am now using klayout more), so it didn't bother me
😮 1