From: Sebastien Bourdeauducq Date: Thu, 17 Sep 2015 09:24:57 +0000 (+0800) Subject: sim: variables are deprecated X-Git-Tag: 24jan2021_ls180~2099^2~3^2~75 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d3fd50950a9166176d3ebaa88121ef3dcced857;p=litex.git sim: variables are deprecated --- diff --git a/migen/sim.py b/migen/sim.py index 37882d6a..c6ddea55 100644 --- a/migen/sim.py +++ b/migen/sim.py @@ -110,6 +110,7 @@ class Evaluator: raise NotImplementedError def assign(self, signal, value): + assert not signal.variable value = value & (2**signal.nbits - 1) if signal.signed and (value & 2**(signal.nbits - 1)): value -= 2**signal.nbits