Files
PeakRDL-regblock/tests/test_cpuif_err_rsp/testcase.py

32 lines
906 B
Python

from parameterized import parameterized_class
from ..lib.cpuifs import ALL_CPUIF
from ..lib.sim_testcase import SimTestCase
from ..lib.test_params import get_permutation_class_name, get_permutations
@parameterized_class(
# To reduce the number of tests, cover all CPUIFs with both error injections enabled, and all
# combinations of bad_addr/bad_rw with the default CPUIF only.
get_permutations({
"cpuif": ALL_CPUIF,
"err_if_bad_addr": [True],
"err_if_bad_rw": [True],
}) +
get_permutations({
"err_if_bad_addr": [True, False],
"err_if_bad_rw": [True, False],
}),
class_name_func=get_permutation_class_name
)
class Test(SimTestCase):
extra_tb_files = [
"../lib/external_reg.sv",
"../lib/external_block.sv",
]
init_hwif_in = False
clocking_hwif_in = False
def test_dut(self):
self.run_test()