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): ...@@ -388,7 +388,7 @@ class Memory(Special):
content = "" content = ""
formatter = "{:0" + str(int(memory.width / 4)) + "X}\n" formatter = "{:0" + str(int(memory.width / 4)) + "X}\n"
for d in memory.init: 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) memory_filename = add_data_file(gn(memory) + ".init", content)
r += "initial begin\n" 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