https://open-source-silicon.dev logo
#general
Title
# general
f

Francisco Gonzalez

03/23/2021, 3:09 PM
Hi Everyone, just managed to get Magic with SKY130A support to work on MacOS. This is the same one that comes with
efabless/openlane:v0.9
Hope this helps anyone getting their environment to work on a Mac.
1
👍 2
It uses ‘socat’ which opens a bidirectional connection between the docker container and the X server running on the Mac.
Here is the script I use:
Copy code
#!/bin/bash 

socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" & 

export DISPLAY=192.168.1.9:0
export OPENLANE=/Users/myuser/openlane
export PDK_ROOT=$OPENLANE/pdks
export IMAGE_NAME=efabless/openlane:v0.9

docker run -it -v $OPENLANE:/openLANE_flow -v $PDK_ROOT:$PDK_ROOT \
 -e PDK_ROOT=$PDK_ROOT -e DISPLAY=$DISPLAY -u $(id -u $USER):$(id -g $USER) \
 $IMAGE_NAME magic -rcfile pdks/sky130A/libs.tech/magic/sky130A.magicrc