From 76db20cd9f236f38f966ecd57a4fa91fb84aa1b0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 23 Dec 2011 00:35:13 +0100 Subject: [PATCH] fhdl: encapsulate replicated constants --- migen/fhdl/structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 0c4cfde2b..58e79ade0 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -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):