From d9fc84af5465b023eb6c8d60bc367d27894a6974 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 31 May 2020 13:04:13 +0100 Subject: [PATCH] more debug statements --- src/soc/fu/compunits/test/test_alu_compunit.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/compunits/test/test_alu_compunit.py b/src/soc/fu/compunits/test/test_alu_compunit.py index b5d55a4b..ac635363 100644 --- a/src/soc/fu/compunits/test/test_alu_compunit.py +++ b/src/soc/fu/compunits/test/test_alu_compunit.py @@ -17,10 +17,11 @@ from soc.experiment.compalu_multi import find_ok # hack import random def set_cu_input(cu, idx, data): + rdop = cu.get_in_name(idx) yield cu.src_i[idx].eq(data) while True: rd_rel_o = yield cu.rd.rel[idx] - print ("rd_rel %d wait HI" % idx, rd_rel_o) + print ("rd_rel %d wait HI" % idx, rd_rel_o, rdop, hex(data)) if rd_rel_o: break yield @@ -54,9 +55,11 @@ def get_cu_output(cu, idx, code): break yield yield cu.wr.go[idx].eq(1) - yield + yield Settle() result = yield cu.dest[idx] + yield yield cu.wr.go[idx].eq(0) + print ("result", repr(code), idx, wrop, wrok, hex(result)) return result -- 2.30.2