From f995e8b92e56f0c3ccf0e50ae910eb3bde778ce8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 17 Feb 2012 23:50:54 +0100 Subject: [PATCH] fhdl: check we pass BV to signals --- migen/fhdl/structure.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2