soc/interconnect/csr: fix CSRAccess values check.

This commit is contained in:
Florent Kermarrec 2020-10-21 21:43:08 +02:00
parent e7b33a9ea8
commit 4eb634ba2d

View file

@ -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