From 305646536e47fb879cfaed2465d0f6d1e82ab895 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 10 Jun 2020 13:09:45 +0100 Subject: [PATCH] starting on alu output check --- src/soc/fu/test/common.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/fu/test/common.py b/src/soc/fu/test/common.py index b68e0739..e373a708 100644 --- a/src/soc/fu/test/common.py +++ b/src/soc/fu/test/common.py @@ -82,3 +82,10 @@ class ALUHelpers: else: yield alu.p.data_i.full_cr.eq(0) + def get_int_o(res, alu, dec2): + out_reg_valid = yield pdecode2.e.write_reg.ok + if out_reg_valid: + res['o'] = yield alu.n.data_o.o.data + + def check_int_o(dut, alu, sim, dec2): + pass -- 2.30.2