sky130.pcells.via_generator#
- sky130.pcells.via_generator(width=1, length=1, via_size=(0.17, 0.17), via_layer=(66, 44), via_enclosure=(0.06, 0.06), via_spacing=(0.17, 0.17))[source]#
Return vias within the area of width x length and set number of rows and number of columns as a global variable to be used outside the function.
- Parameters:
width (float) – width of the area.
length (float) – length of the area.
via_size (tuple[float, float]) – size of the via.
via_layer (tuple[int, int] | str | int | LayerEnum) – layer of the via.
via_enclosure (tuple[float, float]) – enclosure of the via.
via_spacing (tuple[float, float]) – spacing between the vias.
- Return type:
Component
import sky130 c = sky130.pcells.via_generator() c.plot()
(
Source code
,png
,hires.png
,pdf
)