aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/anlogic/brams_init.py
diff options
context:
space:
mode:
Diffstat (limited to 'techlibs/anlogic/brams_init.py')
-rw-r--r--techlibs/anlogic/brams_init.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/techlibs/anlogic/brams_init.py b/techlibs/anlogic/brams_init.py
deleted file mode 100644
index 8dda0d33e..000000000
--- a/techlibs/anlogic/brams_init.py
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env python3
-
-with open("techlibs/anlogic/brams_init_9.vh", "w") as f:
- for i in range(4):
- init_snippets = [" INIT[%3d*9+8]" % (k+256*i,) for k in range(255, -1, -1)]
- for k in range(4, 256, 4):
- init_snippets[k] = "\n " + init_snippets[k]
- print(".INITP_%02X({%s})," % (i, ",".join(init_snippets)), file=f)
- for i in range(32):
- init_snippets = [" INIT[%3d*9 +: 8]" % (k+32*i,) for k in range(31, -1, -1)]
- for k in range(4, 32, 4):
- init_snippets[k] = "\n " + init_snippets[k]
- print(".INIT_%02X({%s})," % (i, ",".join(init_snippets)), file=f)
-
-with open("techlibs/anlogic/brams_init_8.vh", "w") as f:
- for i in range(32):
- print(".INIT_%02X(INIT[%3d*256 +: 256])," % (i, i), file=f)
-
-with open("techlibs/anlogic/brams_init_16.vh", "w") as f:
- for i in range(128):
- print(".INIT_%02X(INIT[%3d*256 +: 256])," % (i, i), file=f)