parameterized onwrite #211
Unanswered
benfroelich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am describing a trio of registers which have identical fields but with different
hw
,sw
, andonwrite
values. I use a parameterized register as a template. I instantiate it three times, once as read-only, once withwoclr
, and once withwoset
. I can't figure out how to parameterizeonwrite
for all three cases. I want to avoid dynamically assignments because presumably I would have to set it on every field individually. In the example below, you can see the results ofNode.get_property()
for each instantiation. Perhaps this is really an XY problem and there is a better way of doing this. If I reverse order of the linesdefault woclr = _woclr;
anddefault woset = _woset;
the issue migrates to thewoset
register, so it appears that having eitherwoclr
orwoset
set false after the other is set true overrides the true. Thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions