mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fix csr_name in add_csr()
This commit is contained in:
parent
40cbe3a952
commit
db890736ea
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ class SoCCore(Module):
|
|||
if n not in self.soc_csr_map.values():
|
||||
self.soc_csr_map.update({csr_name: n})
|
||||
return
|
||||
raise ValueError("No more space to allocate {} csr".format(name))
|
||||
raise ValueError("No more space to allocate {} csr".format(csr_name))
|
||||
# csr_id provided: check that csr_id is not already used and add csr
|
||||
else:
|
||||
for _name, _id in self.soc_csr_map.items():
|
||||
|
|
Loading…
Reference in a new issue