Skip to content

Read IBIS file from circuit class. #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions _unittest/test_15_ibs_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ def test_01_read_ibis(self):
ibis.buffers["RDQS#_u26a_800_modified"].add()
buffer = ibis.buffers["RDQS#_u26a_800_modified"].insert(0.1016, 0.05334, 0.0)
assert buffer.name == "CompInst@RDQS#_u26a_800_modified"

def test_02_read_ibis_from_circuit(self):
ibis_model = self.aedtapp.get_ibis_model_from_file(
os.path.join(local_path, "example_models", "u26a_800_modified.ibs")
)
assert len(ibis_model.components) == 6
assert len(ibis_model.models) == 17
7 changes: 4 additions & 3 deletions pyaedt/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def create_schematic_from_netlist(self, file_to_import):
return True

@pyaedt_function_handler()
def read_ibis(self, path):
def get_ibis_model_from_file(self, path):
"""Create an IBIS model based on the data contained in an IBIS file.

Parameters
Expand All @@ -386,8 +386,9 @@ def read_ibis(self, path):
IBIS object exposing all data from the IBIS file.
"""

reader = ibis_reader.IbisReader()
return reader.read_project(path, self)
reader = ibis_reader.IbisReader(path, self)
reader.parse_ibis_file()
return reader.ibis_model

@pyaedt_function_handler()
def create_schematic_from_mentor_netlist(self, file_to_import):
Expand Down