Allow more test cases to be run with CXXSim
[soc.git] / src / soc / decoder / test / test_decoder_gas.py
index 72d05a79173bb3b396e6ceb9e34e288b60a0f2d2..f65abface930bbe31a4001539f57f73d1fea899f 100644 (file)
@@ -1,5 +1,9 @@
 from nmigen import Module, Signal
-from nmigen.back.pysim import Simulator, Delay
+
+# NOTE: to use cxxsim, export NMIGEN_SIM_MODE=cxxsim from the shell
+# Also, check out the cxxsim nmigen branch, and latest yosys from git
+from nmutil.sim_tmp_alternative import Simulator, Delay
+
 from nmutil.formaltest import FHDLTestCase
 import unittest
 from soc.decoder.power_decoder import (create_pdecode)