xbase.layout.data

Module Contents

Classes

WireArrayInfo

ViaInfo

InstInfo

The primitive instance information object.

LayoutInfo

The layout information object.

LayoutInfoBuilder

CornerLayInfo

The corner layout information object.

Functions

draw_layout_in_template(→ None)

class xbase.layout.data.WireArrayInfo[source]
layer: int[source]
track: bag.util.math.HalfInt[source]
lower: int[source]
upper: int[source]
width: int[source]
num: int[source]
pitch: Union[int, bag.util.math.HalfInt][source]
to_warr(grid: bag.layout.routing.grid.RoutingGrid) bag.layout.routing.base.WireArray[source]
class xbase.layout.data.ViaInfo[source]
via_type: str[source]
xc: int[source]
yc: int[source]
w: int[source]
h: int[source]
enc1: Tuple[int, int, int, int] = (0, 0, 0, 0)[source]
enc2: Tuple[int, int, int, int] = (0, 0, 0, 0)[source]
vnx: int = 1[source]
vny: int = 1[source]
vspx: int = 0[source]
vspy: int = 0[source]
nx: int = 1[source]
ny: int = 1[source]
spx: int = 0[source]
spy: int = 0[source]
priority: int = 0[source]
class xbase.layout.data.InstInfo[source]

The primitive instance information object.

lib_name: str[source]
cell_name: str[source]
xform: Optional[pybag.core.Transform][source]
nx: int = 1[source]
ny: int = 1[source]
spx: int = 0[source]
spy: int = 0[source]
params: Optional[Mapping[str, Any]][source]
commit: bool = True[source]
class xbase.layout.data.LayoutInfo[source]

The layout information object.

rect_dict: bag.util.immutable.ImmutableSortedDict[Tuple[str, str], pybag.core.BBoxCollection][source]
warr_list: bag.util.immutable.ImmutableList[WireArrayInfo][source]
via_list: bag.util.immutable.ImmutableList[ViaInfo][source]
inst_list: bag.util.immutable.ImmutableList[InstInfo][source]
bound_box: pybag.core.BBox[source]
class xbase.layout.data.LayoutInfoBuilder[source]
add_rect_arr(key: Tuple[str, str], box: pybag.core.BBox, nx: int = 1, ny: int = 1, spx: int = 0, spy: int = 0) None[source]
add_warr(layer: int, track: bag.util.math.HalfInt, lower: int, upper: int, width: int, num: int = 1, pitch: Union[int, bag.util.math.HalfInt] = 0) None[source]
add_via(vinfo: ViaInfo) None[source]
add_rect_iter(key: Tuple[str, str], rect_iter: Iterable[pybag.core.BBox]) None[source]
add_instance_primitive(lib_name: str, cell_name: str, *, xform: Optional[pybag.core.Transform] = None, nx: int = 1, ny: int = 1, spx: int = 0, spy: int = 0, params: Optional[Mapping[str, Any]] = None, commit: bool = True) None[source]
get_info(bnd_box: pybag.core.BBox) LayoutInfo[source]
xbase.layout.data.draw_layout_in_template(template: bag.layout.template.TemplateBase, lay_info: LayoutInfo, set_bbox: bool = True) None[source]
class xbase.layout.data.CornerLayInfo[source]

The corner layout information object.

lay_info: LayoutInfo[source]
corner: Tuple[int, int][source]
edgel: bag.util.immutable.ImmutableSortedDict[str, Any][source]
edgeb: bag.util.immutable.ImmutableSortedDict[str, Any][source]