gen/sim/core: add Display support
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 18 May 2016 13:47:10 +0000 (15:47 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 18 May 2016 13:47:10 +0000 (15:47 +0200)
litex/gen/sim/core.py

index e408f99723de2c16a9759a248f88d8f5f135f8cc..27e8f13fb32714d1e65702a70b9acc21de1d2efb 100644 (file)
@@ -212,6 +212,8 @@ class Evaluator:
                     self.execute(s.cases["default"])
             elif isinstance(s, collections.Iterable):
                 self.execute(s)
+            elif isinstance(s, Display):
+                print(s.s)
             else:
                 raise NotImplementedError