fhdl: encapsulate replicated constants
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 22 Dec 2011 23:35:13 +0000 (00:35 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 22 Dec 2011 23:35:13 +0000 (00:35 +0100)
migen/fhdl/structure.py

index 0c4cfde2bfba763ed5c794a5f29e56b612595c61..58e79ade0bb873421836a6eebf70c6aa9c69b358 100644 (file)
@@ -108,7 +108,7 @@ class Cat(Value):
 
 class Replicate(Value):
        def __init__(self, v, n):
-               self.v = v
+               self.v = _cst(v)
                self.n = n
 
 class Constant(Value):