set up dummy parent_pspec to pass XLEN=64 in
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 27 Feb 2022 18:41:43 +0000 (18:41 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 27 Feb 2022 18:41:43 +0000 (18:41 +0000)
ALU test_pipe_spec.py

src/soc/fu/alu/test/test_pipe_caller.py

index 704fc69a59eb8fdd30237f60a90d9a9fef4b978c..9bbe2450071af9fd0d0c54b51726d01c59f679b9 100644 (file)
@@ -124,7 +124,10 @@ class TestRunner(unittest.TestCase):
             pdecode, opkls, fn_name)
         pdecode = pdecode2.dec
 
-        pspec = ALUPipeSpec(id_wid=2, parent_pspec=None)
+        class PPspec:
+            XLEN = 64
+        pps = PPspec()
+        pspec = ALUPipeSpec(id_wid=2, parent_pspec=pps)
         m.submodules.alu = alu = ALUBasePipe(pspec)
 
         comb += alu.p.i_data.ctx.op.eq_from_execute1(pdecode2.do)