Layout#
- class pyedb.grpc.database.layout.layout.Layout(pedb, core: ansys.edb.core.layout.layout.Layout)#
Bases:
PrimitivesQueryManage Layout class.
Overview#
Refresh the layout cache. |
|
Clear the layout cache. |
|
Finds padstack instances matching the specified criteria. |
|
Convert a list of primitives into vias or pins. |
bool: Enable or disable layout caching. |
|
Get terminals belonging to active layout. |
|
Nets. |
|
Groups |
|
Coordinate systems. |
|
Pin groups. |
|
Net classes. |
|
Extended nets. |
|
Differential pairs. |
|
Get all padstack instances in a list. |
|
Voltage regulators. |
Import detail#
from pyedb.grpc.database.layout.layout import Layout
Property detail#
- property Layout.layout_instance: Any#
- property Layout.use_cache#
bool: Enable or disable layout caching.
When enabled, caches padstack instances and primitives for faster access.
- property Layout.terminals: list[pyedb.grpc.database.terminal.pingroup_terminal.PinGroupTerminal | pyedb.grpc.database.terminal.padstack_instance_terminal.PadstackInstanceTerminal | pyedb.grpc.database.terminal.edge_terminal.EdgeTerminal | pyedb.grpc.database.terminal.bundle_terminal.BundleTerminal | pyedb.grpc.database.terminal.point_terminal.PointTerminal]#
Get terminals belonging to active layout.
- property Layout.nets: list[pyedb.grpc.database.net.net.Net]#
Nets.
- Returns:
List[Net]List of Net.
- property Layout.groups: list[pyedb.grpc.database.hierarchy.component.Component]#
Groups
- Returns:
List[Group].List of Component.
- property Layout.coordinate_systems#
Coordinate systems.
- Returns:
List[Group]List of coordinate systems.
- property Layout.pin_groups: list[pyedb.grpc.database.hierarchy.pingroup.PinGroup]#
Pin groups.
- Returns:
List[PinGroup]List of PinGroup.
- property Layout.net_classes: list[pyedb.grpc.database.net.net_class.NetClass]#
Net classes.
- Returns:
List[NetClass]List of NetClass.
- property Layout.extended_nets: list[pyedb.grpc.database.net.extended_net.ExtendedNet]#
Extended nets.
- Returns:
List[ExtendedNet]List of extended nets.
- property Layout.differential_pairs: list[pyedb.grpc.database.net.differential_pair.DifferentialPair]#
Differential pairs.
- Returns:
List[DifferentialPairList of DifferentialPair.
- property Layout.padstack_instances: list[pyedb.grpc.database.primitive.padstack_instance.PadstackInstance]#
Get all padstack instances in a list.
- property Layout.voltage_regulators: list[pyedb.grpc.database.layout.voltage_regulator.VoltageRegulator]#
Voltage regulators.
- List[
VoltageRegulator. List of VoltageRegulator.
- List[
Attribute detail#
- Layout.core#
Method detail#
- Layout.refresh_cache()#
Refresh the layout cache.
Caches padstack instances and primitives from the core object.
- Layout.clear_cache()#
Clear the layout cache.
Clears cached padstack instances and primitives.
- Layout.find_padstack_instances(aedt_name: str | List[str] = None, component_name: str | List[str] = None, component_pin_name: str | List[str] = None, net_name: str | List[str] = None, instance_id: int | List[int] = None) List#
Finds padstack instances matching the specified criteria.
This method filters the available padstack instances based on specified attributes such as aedt_name, component_name, component_pin_name, net_name, or instance_id. Criteria can be passed as individual values or as a list of values. If no padstack instances match the criteria, an error is raised.
- Parameters:
- aedt_name
Union[str,List[str]],optional Name(s) of the AEDT padstack instance(s) to filter.
- component_name
Union[str,List[str]],optional Name(s) of the component(s) to filter padstack instances by.
- component_pin_name
Union[str,List[str]],optional Name(s) of the component pin(s) to filter padstack instances by.
- net_name
Union[str,List[str]],optional Name(s) of the net(s) to filter padstack instances by.
- instance_id
Union[int,List[int]],optional ID(s) of the padstack instance(s) to filter.
- aedt_name
- Returns:
ListA list of padstack instances matching the specified criteria.
- Layout.convert_primitives_to_vias(primitives: list[pyedb.grpc.database.primitive.primitive.Primitive], is_pins: bool = False)#
Convert a list of primitives into vias or pins.
- Parameters:
- primitives
List[Primitive] List of primitives to convert.
- is_pinsbool,
optional If True, convert to pins; otherwise, convert to vias. Default is False.
- primitives