mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
csr: add assert to ensure CSR size < busword (thanks tweakoz)
This commit is contained in:
parent
0116b2b708
commit
4ee9c53f18
1 changed files with 1 additions and 0 deletions
|
@ -340,6 +340,7 @@ class GenericBank(Module):
|
|||
self.simple_csrs = []
|
||||
for c in description:
|
||||
if isinstance(c, CSR):
|
||||
assert c.size <= busword
|
||||
self.simple_csrs.append(c)
|
||||
else:
|
||||
c.finalize(busword)
|
||||
|
|
Loading…
Reference in a new issue