sim: variables are deprecated
authorSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 17 Sep 2015 09:24:57 +0000 (17:24 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 17 Sep 2015 09:24:57 +0000 (17:24 +0800)
migen/sim.py

index 37882d6abdf49ab0fb7150d0a759e1228e6118af..c6ddea55bc2a496cb8d30eefa4fbb893b541e96a 100644 (file)
@@ -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