set parent pspec to class with XLEN = 64
[soc.git] / src / soc / fu / mul / test / test_pipe_ilang.py
index c6ffabebffef42d195635bc8f9b3eb190231b64f..7411b586b7ad8c5481c41bc27b4b2cf78ab155cf 100644 (file)
@@ -6,7 +6,10 @@ from soc.fu.mul.pipeline import MulBasePipe
 
 class TestPipeIlang(unittest.TestCase):
     def write_ilang(self):
-        pspec = MulPipeSpec(id_wid=2, parent_pspec=None)
+        class PPspec:
+            XLEN = 64
+        pps = PPspec()
+        pspec = MulPipeSpec(id_wid=2, parent_pspec=pps)
         alu = MulBasePipe(pspec)
         vl = rtlil.convert(alu, ports=alu.ports())
         with open("mul_pipeline.il", "w") as f: