mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
sim: variables are deprecated
This commit is contained in:
parent
2688d66ea1
commit
9d3fd50950
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue