CfgNets#
- class pyedb.configuration.cfg_nets.CfgNets(pedb=None, signal_nets=None, power_nets=None, reference_nets=None)#
Fluent builder for the
netsconfiguration section.
Overview#
Write signal / power-ground net classifications into the open EDB design. |
|
Read net classifications from EDB. |
|
Serialize the in-memory net classification lists. |
|
Return a |
|
Append signal net names, accepting |
|
Append power/ground net names, accepting |
|
Append reference net names, accepting |
|
Apply net configuration on the layout. |
|
Read net classifications from EDB. |
list of str: Power and ground net names (alias for |
Import detail#
from pyedb.configuration.cfg_nets import CfgNets
Property detail#
- property CfgNets.power_ground_nets#
list of str: Power and ground net names (alias for
power_nets).
Attribute detail#
- CfgNets.signal_nets = []#
- CfgNets.power_nets = []#
- CfgNets.reference_nets = []#
Method detail#
- CfgNets.set_parameters_to_edb()#
Write signal / power-ground net classifications into the open EDB design.
- CfgNets.get_parameters_from_edb()#
Read net classifications from EDB.
- CfgNets.to_dict()#
Serialize the in-memory net classification lists.
Unlike
get_parameters_from_edb(), this method does not query the live EDB session and therefore preserves any pending changes made viaadd_power_ground_nets()/add_signal_nets()beforeset_parameters_to_edb()has been called.- Returns:
dictDictionary with
"signal_nets"and"power_ground_nets"keys.
- CfgNets.get(net_name: str)#
Return a
CfgNetobject for an existing net in the EDB layout.- Parameters:
- net_name
str Net name to look up, e.g.
"GND"or"CLK".
- net_name
- Returns:
CfgNetorFalseA
CfgNetinstance bound to the live EDB session, orFalseif the net does not exist in EDB.
- Raises:
KeyErrorIf no EDB session is attached.
Examples
>>> cfg = edb.configuration.create_config_builder() >>> net = cfg.nets.get("GND") >>> if net: ... print(net.classification) # 'power_ground'
- CfgNets.add_signal_nets(nets)#
Append signal net names, accepting
str,CfgNet, or lists thereof.Any net already present in
power_netsorreference_netsis removed from those lists before being added here.
- CfgNets.add_power_ground_nets(nets)#
Append power/ground net names, accepting
str,CfgNet, or lists thereof.Any net already present in
signal_netsorreference_netsis removed from those lists before being added here.
- CfgNets.add_reference_nets(nets)#
Append reference net names, accepting
str,CfgNet, or lists thereof.Any net already present in
signal_netsorpower_netsis removed from those lists before being added here.
- CfgNets.apply()#
Apply net configuration on the layout.
- CfgNets.get_data_from_db()#
Read net classifications from EDB.
Classes#
Represents a single net in the EDB layout with live session access. |