add cxxsim option
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 8 Sep 2020 08:06:11 +0000 (09:06 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 8 Sep 2020 08:06:11 +0000 (09:06 +0100)
src/soc/simple/test/test_issuer.py

index 91e68a71298a1be5f79e32a5651bd2b46005957a..6426d05ba8deb419ce3e2977c9564b659aeeb60a 100644 (file)
@@ -5,7 +5,10 @@ related bugs:
  * https://bugs.libre-soc.org/show_bug.cgi?id=363
 """
 from nmigen import Module, Signal, Cat
-from nmigen.back.pysim import Simulator, Delay, Settle
+if True:
+    from nmigen.back.pysim import Simulator, Delay, Settle
+else:
+    from nmigen.sim.cxxsim import Simulator, Delay, Settle
 from nmutil.formaltest import FHDLTestCase
 from nmigen.cli import rtlil
 import unittest