From: Luke Kenneth Casson Leighton Date: Sun, 27 Feb 2022 18:41:43 +0000 (+0000) Subject: set up dummy parent_pspec to pass XLEN=64 in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=241352f50428a5fc471537568bcb2709b67263a0;p=soc.git set up dummy parent_pspec to pass XLEN=64 in ALU test_pipe_spec.py --- 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)