mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 01:16:16 +00:00
ecp5: First BRAM type maps successfully
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
2ef1af8b58
commit
983fb7ff88
8 changed files with 76 additions and 10 deletions
|
@ -8,7 +8,7 @@ with open("techlibs/ecp5/bram_init_1_2_4.vh", "w") as f:
|
|||
init_snippets = list(reversed(init_snippets))
|
||||
for k in range(8, 64, 8):
|
||||
init_snippets[k] = "\n " + init_snippets[k]
|
||||
print(".INIT_%02X({%s})," % (i, ", ".join(init_snippets)), file=f)
|
||||
print(".INITVAL_%02X({%s})," % (i, ", ".join(init_snippets)), file=f)
|
||||
|
||||
with open("techlibs/ecp5/bram_init_9_18_36.vh", "w") as f:
|
||||
for i in range(0, 0x40):
|
||||
|
@ -19,4 +19,4 @@ with open("techlibs/ecp5/bram_init_9_18_36.vh", "w") as f:
|
|||
init_snippets = list(reversed(init_snippets))
|
||||
for k in range(8, 32, 8):
|
||||
init_snippets[k] = "\n " + init_snippets[k]
|
||||
print(".INIT_%02X({%s})," % (i, ", ".join(init_snippets)), file=f)
|
||||
print(".INITVAL_%02X({%s})," % (i, ", ".join(init_snippets)), file=f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue