projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5211af
)
cpuif: add memories to csr.h
author
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Mon, 11 Nov 2013 15:53:00 +0000
(16:53 +0100)
committer
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Mon, 11 Nov 2013 15:53:00 +0000
(16:53 +0100)
misoclib/cpuif.py
patch
|
blob
|
history
diff --git
a/misoclib/cpuif.py
b/misoclib/cpuif.py
index 5c30289c1bd4e55377571ebb68c3c9673cf7c95c..0dcdfc16dd7e52b48d157ead842ae9ef653aedbf 100644
(file)
--- a/
misoclib/cpuif.py
+++ b/
misoclib/cpuif.py
@@
-54,6
+54,10
@@
def get_csr_header(csr_base, bank_array, interrupt_map):
pass
else:
r += "#define "+name.upper()+"_INTERRUPT "+str(interrupt_nr)+"\n"
+ for name, memory, mapaddr, mmap in bank_array.srams:
+ mem_base = csr_base + 0x800*mapaddr
+ fullname = name + "_" + memory.name_override
+ r += "#define "+fullname.upper()+"_BASE "+hex(mem_base)+"\n"
r += "\n#endif\n"
return r