mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/cpuif: fix CSR base generation for memories (name is already fullname)
This commit is contained in:
parent
c9c11e7aa8
commit
2583e975f0
1 changed files with 1 additions and 2 deletions
|
@ -72,8 +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"
|
r = "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n#include <hw/common.h>\n"
|
||||||
for name, origin, busword, obj in regions:
|
for name, origin, busword, obj in regions:
|
||||||
if isinstance(obj, Memory):
|
if isinstance(obj, Memory):
|
||||||
fullname = name + "_" + obj.name_override
|
r += "#define CSR_"+name.upper()+"_BASE "+hex(origin)+"\n"
|
||||||
r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n"
|
|
||||||
else:
|
else:
|
||||||
r += "\n/* "+name+" */\n"
|
r += "\n/* "+name+" */\n"
|
||||||
r += "#define CSR_"+name.upper()+"_BASE "+hex(origin)+"\n"
|
r += "#define CSR_"+name.upper()+"_BASE "+hex(origin)+"\n"
|
||||||
|
|
Loading…
Reference in a new issue