From 0db6e1d624bfa0ad8ebc4414f598b1e63eebac75 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 3 Apr 2015 11:14:28 +0200 Subject: [PATCH] soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube) --- misoclib/soc/cpuif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misoclib/soc/cpuif.py b/misoclib/soc/cpuif.py index 7bbe5ad1a..be58bd8de 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"