https://open-source-silicon.dev logo
Title
n

Nelson Rodriguez

02/22/2023, 1:05 AM
Is it possible to call the
sky130A.magicrc
file by doing
magic -rcfile sky130A.magicrc
without having this file into the same folder where I'm running magic? as when using the tech file (where I can run
magic -T sky130A.tech
wherever I want because I already added this file into the path
cad/lib/magic/sys/
)?
t

Tim Edwards

02/22/2023, 1:08 AM
Yes, you can do
magic -rcfile /path/to/sky130A.magicrc
. I take the further step of defining an alias in my Linux .login file:
alias magicsky 'magic -d OGL -rcfile /usr/share/pdk/sky130A/libs.tech/magic/sky130A.magicrc'
so that I can just type
magicsky
and it comes up running with the right arguments.
n

Nelson Rodriguez

02/22/2023, 1:27 AM
Jumm, @Tim Edwards then what would be the difference between this two ways of opening magic: 1.
magic -d XR -rcfile /path/to/sky130A.magicrc
2.
magic -d OGL -rcfile /path/to/sky130A.magicrc
t

Tim Edwards

02/22/2023, 1:29 AM
Just the graphics interface.
-d OGL
is OpenGL; works great except when it doesn't (!). When it doesn't,
-d XR
(Cairo 2D graphics package) works. In the early days of libcairo, when I was first using it, it could be substantially slower than OpenGL. Recently, I haven't noticed any particular performance difference.
👍🏼 1