Skip to content

Commit

Permalink
builtins by filename everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: gkierzkowski <[email protected]>
  • Loading branch information
gkierzkowski-ant committed Aug 30, 2024
1 parent 5eefd05 commit a2ad346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion tests/tests_parse/test_ip_desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_builtins_presence(self):
"axi_interconnect",
"axi_protocol_converter",
"axis_async_fifo",
"dwidth_converter",
"axis_dwidth_converter",
):
assert ip in IPCoreDescription.get_builtins(), f'Builtin IP "{ip}" is missing'

Expand Down
3 changes: 0 additions & 3 deletions topwrap/ip_desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ def load(ip_path: Union[str, Path], fallback: bool = True) -> "IPCoreDescription
ips = IPCoreDescription.get_builtins()
if ip_path.stem in ips:
return ips[ip_path.stem]
ips = IPCoreDescription.get_builtins_by_file()
if ip_path.stem in ips:
return ips[ip_path.stem]
raise

def save(self, file_path: Optional[Union[str, Path]] = None):
Expand Down

0 comments on commit a2ad346

Please sign in to comment.