mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube)
This commit is contained in:
parent
875abdeb8d
commit
0db6e1d624
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def get_csr_header(regions, interrupt_map):
|
|||
r = "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n#include <hw/common.h>\n"
|
||||
for name, origin, busword, obj in regions:
|
||||
if isinstance(obj, Memory):
|
||||
fullname = name + "_" + memory.name_override
|
||||
fullname = name + "_" + obj.name_override
|
||||
r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n"
|
||||
else:
|
||||
r += "\n/* "+name+" */\n"
|
||||
|
|
Loading…
Reference in a new issue