From: Sebastien Bourdeauducq Date: Thu, 22 Dec 2011 23:35:13 +0000 (+0100) Subject: fhdl: encapsulate replicated constants X-Git-Tag: 24jan2021_ls180~2099^2~1110 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76db20cd9f236f38f966ecd57a4fa91fb84aa1b0;p=litex.git fhdl: encapsulate replicated constants --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 0c4cfde2..58e79ade 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):