From: Florent Kermarrec Date: Fri, 3 Apr 2015 09:14:28 +0000 (+0200) Subject: soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube) X-Git-Tag: 24jan2021_ls180~2400 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0db6e1d624bfa0ad8ebc4414f598b1e63eebac75;p=litex.git soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube) --- diff --git a/misoclib/soc/cpuif.py b/misoclib/soc/cpuif.py index 7bbe5ad1..be58bd8d 100644 --- a/misoclib/soc/cpuif.py +++ b/misoclib/soc/cpuif.py @@ -72,7 +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 + "_" + memory.name_override + fullname = name + "_" + obj.name_override r += "#define CSR_"+fullname.upper()+"_BASE "+hex(origin)+"\n" else: r += "\n/* "+name+" */\n"