From f9c97fa4665e2fc42e2f68d0af72e8b4b5788cfb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 18:18:18 +0100 Subject: [PATCH] fix test_compunit.py after moving decoder rdflags function --- src/soc/fu/compunits/test/test_compunit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2