From 2583e975f005e5f74f068ce908e78085804ca9d6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 3 Apr 2015 13:57:37 +0200 Subject: [PATCH] soc/cpuif: fix CSR base generation for memories (name is already fullname) --- misoclib/soc/cpuif.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misoclib/soc/cpuif.py b/misoclib/soc/cpuif.py index be58bd8d..737d2c71 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" -- 2.30.2