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