Does anyone know how I can open klayout with the p...
# klayout
j
Does anyone know how I can open klayout with the pdk? I am trying with the following command:
m
Copy code
klayout -e -l $PDK_ROOT/$PDK/libs.tech/klayout/tech/sky130A.lyp <gdsfile>
If you don’t specify the gds file on the command line, you can open the file in the file menu and use
File
->`Load Layer Properties` to set the properties layer. There’s a way to set the default technology, but I haven’t looked into it.
j
but gds file is my file? Let's say I would like to draw a circuit with klayout but it is not possible to see the layers like in magic
But I copy .lyp and .lyt and I have this error
m
Do you want to draw a new layout?
j
Yes I would like to draw inverter layout there
m
Copy code
klayout -e
Tools->Manage Technologies
right click under default -> Import Techonology
choose $PDK_ROOT/$PDK/libs.tech/klayout/tech/sky130A.lyt
File->New Layout
choose sky130A technology from drop down menu
File->Load Layer Properties
choose $PDK_ROOT/$PDK/libs.tech/klayout/tech/sky130A.lyp
t
@Mitch Bailey: When I go to
Tools->Manage Technologies
all I get is a big blank window with no "Import Technology" visible anywhere. What am I missing? (Klayout 0.28, by the way, started with
klayout -e
.)
j
I have the same problem, I have not been able to design with this pdk in klayout
m
It’s sort of non-intuitive, but click on the
+
on the lower left.
j
but when selecting the pdk path, it still doesn't exit
m
@Tim Edwards or rather right click in the open white space.
Copy code
right click under default -> Import Techonology
choose $PDK_ROOT/$PDK/libs.tech/klayout/tech/sky130A.lyt
I’m still using
0.27
though. @Juan Andres Is there a
$PDK_ROOT/$PDK/libs.tech/klayout/tech/sky130A.lyt
file?
t
@Mitch Bailey: Thanks, that works! Not just non-intuitive, but really lousy interface construction (not that I haven't been accused of that plenty of times myself. . . ).
😆 1
@Mitch Bailey: Do you know how to access the pymacros in the GF libraries for klayout? Also for GF, are the
drc/
and
lvs/
directories in the wrong place (klayout seems to want them to be subdirectories of
tech/
)?
m
@Tim Edwards I’ve never actually used macros, LVS, or DRC for klayout, but it appears that you are correct in that the files are not in the default location. However, it looks like you can open Macros->Macro Development and get tabs for
Python
,
DRC
, and
LVS
. In each tab, you can right click and add the pdk location (select the folder), to access the files inside.
j
Done, do you know how I can work with the default transistors, diodes and others that the pdk delivers? That is to say, not having to edit it from 0, if not using the ones that are already there?
Is that what you mean by macros?
m
Right! It looks like these macros are available.
j
but how do I call them to my design?
m
@Amro Tork Can you comment on how to use the pcells in klayout? I couldn’t figure out how to.
a
@Mitch Bailey I would refer to @Tim Edwards. It's advisable to use the pre built PDK. Check this:

https://www.youtube.com/watch?v=_spkK77JeqY

And here:

https://www.youtube.com/watch?v=btB5Qov8MEs

https://www.youtube.com/watch?v=TJ71K0e-DvA

https://www.youtube.com/watch?v=hweOEznqI-M

https://www.youtube.com/watch?v=KtegPMeYu2Q

@Mitch Bailey The last one has the exact steps to load the full PDK in Klayout.
m
Great! Thanks.
v
@Amro Tork Videos are quite useful👍 Does same settings apply in order to do layout in Klayout for sky130 pdk designs ?
How can PEX be done on layout done in Klayout. Same not covered in gf180mcu tutorial video

https://www.youtube.com/watch?v=USCmZuREMTE&amp;list=PLZuGFJzpFksCU7yKn2P_xRTOktVBDWAJf&amp;index=1&amp;t=152s