From: Tobias Platen Date: Mon, 13 Dec 2021 12:01:45 +0000 (+0100) Subject: add namedtuple proposed by lkcl in chat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ef5b14d86fbd3321b67478731f98dc989ab2c1e;p=soc.git add namedtuple proposed by lkcl in chat --- diff --git a/src/soc/experiment/pimem.py b/src/soc/experiment/pimem.py index c1bd168c..7077fbde 100644 --- a/src/soc/experiment/pimem.py +++ b/src/soc/experiment/pimem.py @@ -32,6 +32,8 @@ from soc.experiment.mem_types import LDSTException from soc.experiment.testmem import TestMemory #from soc.scoreboard.addr_split import LDSTSplitter from nmutil.util import Display +from collections import namedtuple +MSRSpec = namedtuple("MSRSpec", ["dr", "pr", "sf"]) # used in unit tests import unittest