Skip to content

Commit

Permalink
soc/cpuif: fix CSR base generation for memories (name is already full…
Browse files Browse the repository at this point in the history
…name)
enjoy-digital committed Apr 3, 2015
1 parent c9c11e7 commit 2583e97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions misoclib/soc/cpuif.py
Original file line number Diff line number Diff line change
@@ -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"
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"

0 comments on commit 2583e97

Please sign in to comment.