starting on alu output check
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 10 Jun 2020 12:09:45 +0000 (13:09 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 10 Jun 2020 12:09:45 +0000 (13:09 +0100)
src/soc/fu/test/common.py

index b68e0739ecdc3d53aa31584941824024108560be..e373a70887daab4468b540bb34a4c74acccb21b8 100644 (file)
@@ -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