From 4eb634ba2d494e7448dc726162b1d43cbd105cec Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 21 Oct 2020 21:43:08 +0200 Subject: [PATCH] soc/interconnect/csr: fix CSRAccess values check. --- litex/soc/interconnect/csr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/csr.py b/litex/soc/interconnect/csr.py index 7320311a5..89f38d144 100644 --- a/litex/soc/interconnect/csr.py +++ b/litex/soc/interconnect/csr.py @@ -190,7 +190,7 @@ class CSRField(Signal): """ def __init__(self, name, size=1, offset=None, reset=0, description=None, pulse=False, access=None, values=None): - assert access is None or (access in CSRAccess.values()) + assert access is None or (access in CSRAccess.__members__.values()) self.name = name self.size = size self.offset = offset