mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
parent
88ec1b3f5e
commit
5e667f17d7
1 changed files with 2 additions and 2 deletions
|
@ -217,10 +217,10 @@ class CSRFieldAggregate:
|
|||
for field in fields:
|
||||
if field.access is None:
|
||||
field.access = access
|
||||
elif field.access == CSRAccess.ReadOnly:
|
||||
elif access == CSRAccess.ReadOnly:
|
||||
assert not field.pulse
|
||||
assert field.access == CSRAccess.ReadOnly
|
||||
elif field.access == CSRAccess.ReadWrite:
|
||||
elif access == CSRAccess.ReadWrite:
|
||||
assert field.access in [CSRAccess.ReadWrite, CSRAccess.WriteOnly]
|
||||
if field.pulse:
|
||||
field.access = CSRAccess.WriteOnly
|
||||
|
|
Loading…
Reference in a new issue