Commit 67422106 authored by Florent Kermarrec's avatar Florent Kermarrec
Browse files

sim/core: add Display support

parent f46f014e
...@@ -229,6 +229,15 @@ class Evaluator: ...@@ -229,6 +229,15 @@ class Evaluator:
self.execute(s.cases["default"]) self.execute(s.cases["default"])
elif isinstance(s, collections.Iterable): elif isinstance(s, collections.Iterable):
self.execute(s) self.execute(s)
elif isinstance(s, Display):
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: else:
raise NotImplementedError raise NotImplementedError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment