It looks like you're new here. If you want to get involved, click one of these buttons!
Hi I'm Erik
I'm developing specific scrit for calculating Antenna partial/gate/diffusion Area.
so I'm asking for how to define layers connectivity and how to get some specific regions amons conncted layers
I found out the class object as "connectivity" refer to below.
What i want to do is
1st> get the pin metal 2(attached to m2 text)
2st> this pin metal connect to metal1 and then i want to get metal 1 regions
Can i know how to do that flows by usiont connecivity class object? Help me plz~
conn = pya.Connecivity()
m1_idx = layout.layer(15, 0) # Metal 1
v1_idx = layout.layer(16, 0) # Via 1
m2_idx = layout.layer(17, 0) # Metal 2
conn.connect(m1_idx, v1_idx)
conn.connect(v1_idx, m2_idx)
Comments
You will some information about antenna checks here and a sample here: https://www.klayout.de/doc-qt5/about/drc_ref_netter.html#h2-64
There is another option that uses arbitrary expressions to create shape properties depending on computed net parameters and allows emitting shapes based on decisions. The feature is called "evaluate_nets": https://www.klayout.de/doc-qt5/about/drc_ref_netter.html#h2-345
Matthias