Move port list generation out of Jinja template. #125, #153

This commit is contained in:
Alex Mykyta
2025-10-25 19:38:00 -07:00
parent 1926aff7b1
commit 529c4df98c
3 changed files with 47 additions and 26 deletions

View File

@@ -108,10 +108,6 @@ class Hwif:
Returns the declaration string for all I/O ports in the hwif group
"""
# Assume get_package_declaration() is always called prior to this
assert self.has_input_struct is not None
assert self.has_output_struct is not None
lines = []
if self.has_input_struct:
type_name = f"{self.top_node.inst_name}__in_t"