diff --git a/litex/gen/sim/core.py b/litex/gen/sim/core.py index 3aca202bd..1ff34795e 100644 --- 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