From 82eb031f84f451d587f0ac5202b3235a9ce90813 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 3 Jul 2020 00:09:47 +0100 Subject: [PATCH] use Mock class (more convenient) --- src/soc/config/test/test_loadstore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/config/test/test_loadstore.py b/src/soc/config/test/test_loadstore.py index 1676967a..8d906c70 100644 --- a/src/soc/config/test/test_loadstore.py +++ b/src/soc/config/test/test_loadstore.py @@ -6,10 +6,10 @@ from nmigen.back.pysim import Simulator, Settle from soc.config.loadstore import ConfigLoadStoreUnit from collections import namedtuple from nmigen.cli import rtlil +from unittest.mock import Mock + +TestMemPspec = Mock # might as well use Mock, it does the job -TestMemPspec = namedtuple('TestMemPspec', ['ldst_ifacetype', - 'imem_ifacetype', - 'addr_wid', 'mask_wid', 'reg_wid']) def write_to_addr(dut, addr, value): yield dut.x_addr_i.eq(addr) -- 2.30.2