Commit 36c73dd8 authored by Timothy Pearson's avatar Timothy Pearson
Browse files

Merge branch 'wip/meklort/ecpbram' into 'master'

specials: Update mem.init files to match expectation of ecpbram

See merge request !1
parents b1b2b298 047e3e1d
......@@ -386,8 +386,9 @@ class Memory(Special):
if memory.init is not None:
content = ""
formatter = "{:0" + str(int(memory.width / 4)) + "X}\n"
for d in memory.init:
content += "{:x}\n".format(d)
content += formatter.format(d)
memory_filename = add_data_file(gn(memory) + ".init", content)
r += "initial begin\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment