mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/interconnect/csr: fix CSRAccess values check.
This commit is contained in:
parent
e7b33a9ea8
commit
4eb634ba2d
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
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.name = name
|
||||||
self.size = size
|
self.size = size
|
||||||
self.offset = offset
|
self.offset = offset
|
||||||
|
|
Loading…
Reference in a new issue