Convert yet another few tests to be able to use latest cxxsim
[soc.git] / src / soc / fu / branch / test / test_pipe_caller.py
index cb827907b1ae859102c58f9f6b2fcaa58816cce2..2e4d7a8928559b6a167f0cd3e9ffbb552dd7ab2e 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 nmigen.cli import rtlil
 import unittest
 from soc.decoder.isa.caller import ISACaller, special_sprs