From 9d3fd50950a9166176d3ebaa88121ef3dcced857 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 17 Sep 2015 17:24:57 +0800 Subject: [PATCH] sim: variables are deprecated --- migen/sim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/migen/sim.py b/migen/sim.py index 37882d6ab..c6ddea55b 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