Skip to content

Commit

Permalink
Fix bug when processing UDPs that use an array type. #147
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Jan 12, 2023
1 parent cf981e8 commit 491cb1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion systemrdl/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.25.2"
__version__ = "1.25.3"
2 changes: 2 additions & 0 deletions systemrdl/properties/user_defined.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def constr_componentwidth(self) -> bool:

@property
def valid_types(self) -> Tuple[Any, ...]: # type: ignore
if isinstance(self.valid_type, rdltypes.ArrayPlaceholder):
return (self.valid_type,)
if issubclass(self.valid_type, rdltypes.references.RefType):
return self.valid_type.expanded
else:
Expand Down

0 comments on commit 491cb1f

Please sign in to comment.