Dynamically assign property values outside of an addrmap scope? #97
-
Is is possible to dynamically assign property values outside of an addrmap scope?
[My aim is to have a generic addrmap that I can then modify outside of the addrmap, to create variants of that addmap for regression testing.] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That wont work since
You can override the parameter's value during elaboration: https://systemrdl-compiler.readthedocs.io/en/latest/api/compiler.html#systemrdl.RDLCompiler.elaborate rdlc = RDLCompiler()
rdlc.compile_file('my_file.rdl')
root = rdlc.elaborate(parameters={'MY_RESET': 1}) |
Beta Was this translation helpful? Give feedback.
That wont work since
my_addrmap
is not an instance. However, you could use RDL parameters:You can override the parameter's value during elaboration: https://systemrdl-compiler.readthedocs.io/en/latest/api/compiler.html#systemrdl.RDLCompiler.elaborate
For example: