From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 17:18:18 +0000 (+0100) Subject: fix test_compunit.py after moving decoder rdflags function X-Git-Tag: semi_working_ecp5~350 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9c97fa4665e2fc42e2f68d0af72e8b4b5788cfb;p=soc.git fix test_compunit.py after moving decoder rdflags function --- diff --git a/src/soc/fu/compunits/test/test_compunit.py b/src/soc/fu/compunits/test/test_compunit.py index b1d4b0fd..91598935 100644 --- a/src/soc/fu/compunits/test/test_compunit.py +++ b/src/soc/fu/compunits/test/test_compunit.py @@ -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)