projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa260f5
)
gen/sim/core: add args support on Display
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Sun, 9 Dec 2018 08:46:10 +0000
(09:46 +0100)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Sun, 9 Dec 2018 08:46:10 +0000
(09:46 +0100)
litex/gen/sim/core.py
patch
|
blob
|
history
diff --git
a/litex/gen/sim/core.py
b/litex/gen/sim/core.py
index 3aca202bd89ca6b229594f0811ae3fcb67a8225e..1ff34795e665d3c8ebbb0edef89fc79f97a66b66 100644
(file)
--- a/
litex/gen/sim/core.py
+++ b/
litex/gen/sim/core.py
@@
-217,7
+217,14
@@
class Evaluator:
elif isinstance(s, collections.Iterable):
self.execute(s)
elif isinstance(s, Display):
- print(s.s)
+ args = []
+ for arg in s.args:
+ assert isinstance(arg, _Value)
+ try:
+ args.append(self.signal_values[arg])
+ except: # not yet evaluated
+ args.append(arg.reset.value)
+ print(s.s %(*args,))
else:
raise NotImplementedError