diff --git a/src/pyedb/configuration/cfg_ports_sources.py b/src/pyedb/configuration/cfg_ports_sources.py index afc5197a2f..9d92ac7d0d 100644 --- a/src/pyedb/configuration/cfg_ports_sources.py +++ b/src/pyedb/configuration/cfg_ports_sources.py @@ -391,7 +391,11 @@ def create_terminals(self): pos_coor_terminal = dict() if self.type == "coax": pins = self._get_pins(pos_type, pos_value, self.positive_terminal_info.reference_designator) - pins = {f"{self.name}_{self.positive_terminal_info.reference_designator}": i for _, i in pins.items()} + if len(pins) < 2: + pins = {f"{self.name}": i for _, i in pins.items()} + else: + pins = {f"{self.name}_{name}": i for name, i in pins.items()} + self.distributed = True pos_objs.update(pins) elif pos_type == "coordinates": layer = self.positive_terminal_info.layer diff --git a/tests/legacy/system/test_edb_configuration_2p0.py b/tests/legacy/system/test_edb_configuration_2p0.py index a4798f378a..79972da6c4 100644 --- a/tests/legacy/system/test_edb_configuration_2p0.py +++ b/tests/legacy/system/test_edb_configuration_2p0.py @@ -355,6 +355,12 @@ def test_05b_ports_coax(self, edb_examples): "type": "coax", "positive_terminal": {"net": "PCIe_Gen4_TX2_CAP_N"}, }, + { + "name": "coax", + "reference_designator": "X1", + "type": "coax", + "positive_terminal": {"net": "5V"}, + }, ] data = {"ports": ports} edbapp = edb_examples.get_si_verse() @@ -362,6 +368,10 @@ def test_05b_ports_coax(self, edb_examples): assert edbapp.ports["COAX_U1_AM17"] assert edbapp.ports["COAX_U1_PCIe_Gen4_TX2_CAP_N"] assert edbapp.ports["COAX_U1_PCIe_Gen4_TX2_CAP_N"].location + assert edbapp.ports["coax_X1_5V_B18"] + assert edbapp.ports["coax_X1_5V_B17"] + assert edbapp.ports["coax_X1_5V_A18"] + assert edbapp.ports["coax_X1_5V_A17"] edbapp.close() def test_05c_ports_circuit_pin_net(self, edb_examples):