mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl: check we pass BV to signals
This commit is contained in:
parent
a1ad30faab
commit
f995e8b92e
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ def _cst(x):
|
|||
|
||||
class Signal(Value):
|
||||
def __init__(self, bv=BV(), name=None, variable=False, reset=0, name_override=None):
|
||||
assert(isinstance(bv, BV))
|
||||
self.bv = bv
|
||||
self.variable = variable
|
||||
self.reset = Constant(reset, bv)
|
||||
|
|
Loading…
Reference in a new issue