diff --git a/misoclib/soc/cpuif.py b/misoclib/soc/cpuif.py index be58bd8de..737d2c71a 100644 --- a/misoclib/soc/cpuif.py +++ b/misoclib/soc/cpuif.py @@ -72,8 +72,7 @@ def get_csr_header(regions, interrupt_map): r = "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n#include \n" for name, origin, busword, obj in regions: if isinstance(obj, Memory): - fullname = name + "_" + obj.name_override - r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n" + r += "#define CSR_"+name.upper()+"_BASE "+hex(origin)+"\n" else: r += "\n/* "+name+" */\n" r += "#define CSR_"+name.upper()+"_BASE "+hex(origin)+"\n"