fix test_compunit.py after moving decoder rdflags function
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 14 Aug 2020 17:18:18 +0000 (18:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 14 Aug 2020 17:18:18 +0000 (18:18 +0100)
src/soc/fu/compunits/test/test_compunit.py

index b1d4b0fdf4b9f94d947c32433182ca2d8ec30b2c..915989358f42ddb589240a754657b6f8f5dc51a1 100644 (file)
@@ -4,7 +4,7 @@ from nmutil.formaltest import FHDLTestCase
 from nmigen.cli import rtlil
 import unittest
 from soc.decoder.power_decoder import create_pdecode
-from soc.decoder.power_decoder2 import PowerDecode2
+from soc.decoder.power_decoder2 import PowerDecode2, get_rdflags
 from soc.decoder.power_enums import Function
 from soc.decoder.isa.all import ISA
 
@@ -229,7 +229,7 @@ class TestRunner(FHDLTestCase):
             # set operand and get inputs
             yield from set_operand(cu, pdecode2, sim)
             # reset read-operand mask
-            rdmask = pdecode2.rdflags(cu)
+            rdmask = get_rdflags(pdecode2.e, cu)
             #print ("hardcoded rdmask", cu.rdflags(pdecode2.e))
             #print ("decoder rdmask", rdmask)
             yield cu.rdmaskn.eq(~rdmask)