print the base address of each SCR as indicated
This commit is contained in:
parent
81ff127dc3
commit
ed5bdf3c23
@ -29,9 +29,11 @@ class SCRFileMap(prefix: String, maxAddress: Int, baseAddress: BigInt) {
|
||||
|
||||
def as_c_header(): String = {
|
||||
addr2name.map{ case(address, name) =>
|
||||
"#define " + prefix + "__" + name + "__PADDR 0x%x".format(baseAddress + address)
|
||||
"#define " + prefix + "__" + name + "__OFFSET 0x%x".format(address)
|
||||
}.mkString("\n") + "\n"
|
||||
List(
|
||||
"#define " + prefix + "__" + name + "__PADDR 0x%x".format(baseAddress + address),
|
||||
"#define " + prefix + "__" + name + "__OFFSET 0x%x".format(address)
|
||||
)
|
||||
}.flatten.mkString("\n") + "\n"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user