You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am describing a trio of registers which have identical fields but with different hw, sw, and onwrite values. I use a parameterized register as a template. I instantiate it three times, once as read-only, once with woclr, and once with woset. I can't figure out how to parameterize onwrite 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 of Node.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 lines default woclr = _woclr; and default woset = _woset; the issue migrates to the woset register, so it appears that having either woclr or woset set false after the other is set true overrides the true. Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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