Skip to content

Commit

Permalink
FIX: Circuit crash due to IBIS Model without diff pin (#4667)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored May 13, 2024
1 parent c7cde76 commit a5fbb84
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pyaedt/generic/ibis_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,11 +974,14 @@ def read_component(self, ibis, comp_infos):
pin = self.make_pin_object(pin_info, component.name, ibis)
component.pins[pin.name] = pin

diff_pin_list = comp_info["diff pin"]["diff pin"].strip().split("\n")[1:]
for pin_info in diff_pin_list:

pin = self.make_diff_pin_object(pin_info, component, ibis)
component.pins[pin.name] = pin
try:
diff_pin_list = comp_info["diff pin"]["diff pin"].strip().split("\n")[1:]
for pin_info in diff_pin_list:

pin = self.make_diff_pin_object(pin_info, component, ibis)
component.pins[pin.name] = pin
except Exception as error: # pragma: no cover
logger.warning("Cannot find Diff Pin. Ignore it. Exception message: {}".format(error))
ibis.components[component.name] = component

@classmethod
Expand Down

0 comments on commit a5fbb84

Please sign in to comment.