Commit 5d8ad084 authored by Timothy Pearson's avatar Timothy Pearson
Browse files

Fix ECP5 BRAM packing

parent 36c73dd8
......@@ -388,7 +388,7 @@ class Memory(Special):
content = ""
formatter = "{:0" + str(int(memory.width / 4)) + "X}\n"
for d in memory.init:
content += formatter.format(d)
content += formatter.format(d).zfill(int(memory.width / 4))
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