We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120d457 commit e81e59eCopy full SHA for e81e59e
pyrtl/conditional.py
@@ -203,9 +203,15 @@ def _finalize():
203
# handle wirevector and register assignments
204
else:
205
if isinstance(lhs, Register):
206
- result = lhs # default for registers is "self"
+ if hasattr(lhs, 'condition_default'):
207
+ result = lhs.condition_default
208
+ else:
209
+ result = lhs # default for registers is "self"
210
elif isinstance(lhs, WireVector):
- result = 0 # default for wire is "0"
211
212
213
214
+ result = 0 # default for wire is "0"
215
216
raise PyrtlInternalError('unknown assignment in finalize')
217
predlist = _predicate_map[lhs]
0 commit comments