From: Luke Kenneth Casson Leighton Date: Fri, 10 Jul 2020 09:40:15 +0000 (+0100) Subject: add more debug output for #425 X-Git-Tag: div_pipeline~111 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1040fedb60ba617b0a85997330c10e5769c06051;p=soc.git add more debug output for #425 --- diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index 403c0b57..9525a337 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -217,7 +217,22 @@ class TestRunner(FHDLTestCase): while not vld: yield vld = yield alu.n.valid_o - print ("bug track", alu.pipe_end.div_out) + # bug #425 investigation + do = alu.pipe_end.div_out + ctx_op = do.i.ctx.op + is_32bit = yield ctx_op.is_32bit + is_signed = yield ctx_op.is_signed + quotient_root = yield do.i.core.quotient_root + dive_abs_ov32 = yield do.i.dive_abs_ov32 + div_by_zero = yield do.i.div_by_zero + quotient_neg = yield do.quotient_neg + print ("32bit", hex(is_32bit)) + print ("signed", hex(is_signed)) + print ("quotient_root", hex(quotient_root)) + print ("div_by_zero", hex(div_by_zero)) + print ("dive_abs_ov32", hex(dive_abs_ov32)) + print ("quotient_neg", hex(quotient_neg)) + print ("") yield yield from self.check_alu_outputs(alu, pdecode2, sim, code)