mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
prevent adding intbv to senslist of always_comb
Since the merging of always_comb and always_seq NodeVisitors in #113, intbvs are also added to the inputs by SigNameVisitor(in addition to sigs and listofsigs). Since always_comb assumed that only sigs and listofsigs are present in inputs, it wrongly addded intbvs to the sensitivity list.
This commit is contained in:
parent
a1ba159a16
commit
443024ff29
@ -126,7 +126,7 @@ class _AlwaysComb(_Always):
|
|||||||
s = self.symdict[n]
|
s = self.symdict[n]
|
||||||
if isinstance(s, _Signal):
|
if isinstance(s, _Signal):
|
||||||
senslist.append(s)
|
senslist.append(s)
|
||||||
else: # list of sigs
|
elif _isListOfSigs(s):
|
||||||
senslist.extend(s)
|
senslist.extend(s)
|
||||||
self.senslist = tuple(senslist)
|
self.senslist = tuple(senslist)
|
||||||
if len(self.senslist) == 0:
|
if len(self.senslist) == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user