From 241352f50428a5fc471537568bcb2709b67263a0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 27 Feb 2022 18:41:43 +0000 Subject: [PATCH] set up dummy parent_pspec to pass XLEN=64 in ALU test_pipe_spec.py --- src/soc/fu/alu/test/test_pipe_caller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/alu/test/test_pipe_caller.py b/src/soc/fu/alu/test/test_pipe_caller.py index 704fc69a..9bbe2450 100644 --- a/src/soc/fu/alu/test/test_pipe_caller.py +++ b/src/soc/fu/alu/test/test_pipe_caller.py @@ -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) -- 2.30.2