Skip to content

Commit

Permalink
Fix quirk where parameter override across multiple elaborations would…
Browse files Browse the repository at this point in the history
… use cached default value. #166
  • Loading branch information
amykyta3 committed Apr 20, 2023
1 parent 0c63b76 commit 37496b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions systemrdl/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def elaborate(self, top_def_name: Optional[str]=None, inst_name: Optional[str]=N
self.msg.fatal("Incorrect type for top-level parameter override of '%s'" % param_name)

parameter.expr = assign_expr
parameter._value = None # Ensure cached value is cleared


# instantiate top_inst into the root component instance
Expand Down

0 comments on commit 37496b7

Please sign in to comment.