From: Sebastien Bourdeauducq Date: Fri, 17 Feb 2012 22:50:54 +0000 (+0100) Subject: fhdl: check we pass BV to signals X-Git-Tag: 24jan2021_ls180~2099^2~1011 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f995e8b92e56f0c3ccf0e50ae910eb3bde778ce8;p=litex.git fhdl: check we pass BV to signals --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index fac607cd..0ca04b13 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -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)