Convert a few more tests to be able to use cxxsim
[soc.git] / src / soc / fu / trap / test / test_pipe_caller.py
index aa45b6c757133362f8994069bb28a73cd6d315c0..1cc4c4238b53bd5ebe2e2e3c90b32ba7268ddab4 100644 (file)
@@ -1,5 +1,9 @@
 from nmigen import Module, Signal
-from nmigen.back.pysim import Simulator, Delay, Settle
+
+# 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, Settle
+
 from nmutil.formaltest import FHDLTestCase
 from nmigen.cli import rtlil
 import unittest