Skip to content

Commit

Permalink
Remove incorrect inheritence of external for signals.
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Jan 7, 2025
1 parent 686fdb7 commit f4059a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/systemrdl/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.29.1"
__version__ = "1.29.2"
8 changes: 2 additions & 6 deletions src/systemrdl/core/elaborate.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,8 @@ def enter_Field(self, node: FieldNode) -> None:
node.inst.external = node.parent.inst.external

def enter_Signal(self, node: SignalNode) -> None:
if isinstance(node.parent, RootNode):
# In root scope. External is meaningless, so assign it to False
node.inst.external = False
else:
assert node.parent is not None
node.inst.external = node.parent.inst.external
# External is meaningless for signals. Always False
node.inst.external = False

def enter_Regfile(self, node: RegfileNode) -> None:
if self.coerce_external_to is not None:
Expand Down

0 comments on commit f4059a9

Please sign in to comment.