are_port_reference_terminals_connected#
- Edb.are_port_reference_terminals_connected(common_reference=None)[source]#
Check if all terminal references in design are connected. If the reference nets are different, there is no hope for the terminal references to be connected. After we have identified a common reference net we need to loop the terminals again to get the correct reference terminals that uses that net.
- Parameters:
- common_reference
str
,optional
Common Reference name. If
None
it will be searched in ports terminal. If a string is passed then all excitations must have such reference assigned.
- common_reference
- Returns:
- bool
Either if the ports are connected to reference_name or not.
Examples
>>> from pyedb import Edb >>>edb = Edb() >>> edb.hfss.create_edge_port_vertical(prim_1_id, ["-66mm", "-4mm"], "port_ver") >>> edb.hfss.create_edge_port_horizontal( >>> ... prim_1_id, ["-60mm", "-4mm"], prim_2_id, ["-59mm", "-4mm"], "port_hori", 30, "Lower" >>> ... ) >>> edb.hfss.create_wave_port(traces[0].id, trace_paths[0][0], "wave_port") >>> edb.cutout(["Net1"]) >>> assert edb.are_port_reference_terminals_connected()