sky130.pcells.contact_array#
- sky130.pcells.contact_array(width=0.29, height=0.29, contact_layer=(66, 44), contact_size=(0.17, 0.17), contact_spacing=(0.17, 0.17), enclosure=(0.06, 0.06))[source]#
Return a centered array of contacts/vias within the area of width x height.
Uses floor rounding to match Magic’s contact placement behavior.
- Parameters:
width (float) – width of the enclosing area.
height (float) – height of the enclosing area.
contact_layer (tuple[int, int] | str | int | LayerEnum) – layer for the contact rectangles.
contact_size (tuple[float, float]) – (x, y) size of each contact.
contact_spacing (tuple[float, float]) – (x, y) spacing between contacts.
enclosure (tuple[float, float]) – (x, y) minimum enclosure of contacts within the area.
- Return type:
Component
import sky130 c = sky130.pcells.contact_array() c.plot()
(
Source code,png,hires.png,pdf)