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
Hope this helps anyone getting their environment to work on a Mac.
👍 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

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

export DISPLAY=
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/