Allow more test cases to be run with CXXSim
[soc.git] / src / soc / experiment / mmu.py
index a8c514f7d6e1816a132a804369ebd24596cfeee2..8e63bdec4a580971c4dd8a6272b17b687f6e1b0c 100644 (file)
@@ -20,10 +20,10 @@ from nmutil.byterev import byte_reverse
 from nmutil.mask import Mask, masked
 from nmutil.util import Display
 
-if True:
-    from nmigen.back.pysim import Simulator, Delay, Settle
-else:
-    from nmigen.sim.cxxsim 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.util import wrap
 
 from soc.experiment.mem_types import (LoadStore1ToMMUType,