projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2688d66
)
sim: variables are deprecated
author
Sebastien Bourdeauducq
<sb@m-labs.hk>
Thu, 17 Sep 2015 09:24:57 +0000
(17:24 +0800)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Thu, 17 Sep 2015 09:24:57 +0000
(17:24 +0800)
migen/sim.py
patch
|
blob
|
history
diff --git
a/migen/sim.py
b/migen/sim.py
index 37882d6abdf49ab0fb7150d0a759e1228e6118af..c6ddea55bc2a496cb8d30eefa4fbb893b541e96a 100644
(file)
--- 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