summaryrefslogtreecommitdiff
path: root/techlibs/xilinx
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-08-16 21:39:34 +0200
committerClifford Wolf <clifford@clifford.at>2015-08-16 21:39:34 +0200
commit9596fe74de69021e953aec06702e8b0c18da421a (patch)
tree9a0da02e801be5a83489fadd059a05221bb9333a /techlibs/xilinx
parentaedcfd6fd3ea99d9d418b81d376590bdb00c2c5c (diff)
Another bugfix for ice40 and xilinx brams_init make rules
Diffstat (limited to 'techlibs/xilinx')
-rw-r--r--techlibs/xilinx/Makefile.inc2
-rw-r--r--techlibs/xilinx/brams_init.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/techlibs/xilinx/Makefile.inc b/techlibs/xilinx/Makefile.inc
index 29d3fe9d..cca41f91 100644
--- a/techlibs/xilinx/Makefile.inc
+++ b/techlibs/xilinx/Makefile.inc
@@ -11,7 +11,7 @@ EXTRA_OBJS += techlibs/xilinx/brams_init.mk
techlibs/xilinx/brams_init.mk: techlibs/xilinx/brams_init.py
$(Q) mkdir -p techlibs/xilinx
- $(P) cd techlibs/xilinx && python $<
+ $(P) python $<
$(Q) touch $@
techlibs/xilinx/brams_init_36.vh: techlibs/xilinx/brams_init.mk
diff --git a/techlibs/xilinx/brams_init.py b/techlibs/xilinx/brams_init.py
index be61d3f6..eac829dd 100644
--- a/techlibs/xilinx/brams_init.py
+++ b/techlibs/xilinx/brams_init.py
@@ -3,7 +3,7 @@
from __future__ import division
from __future__ import print_function
-with open("brams_init_18.vh", "w") as f:
+with open("techlibs/xilinx/brams_init_18.vh", "w") as f:
for i in range(8):
init_snippets = ["INIT[%3d*9+8]" % (k+256*i,) for k in range(255, -1, -1)]
for k in range(4, 256, 4):
@@ -15,7 +15,7 @@ with open("brams_init_18.vh", "w") as f:
init_snippets[k] = "\n " + init_snippets[k]
print(".INIT_%02X({%s})," % (i, ", ".join(init_snippets)), file=f)
-with open("brams_init_36.vh", "w") as f:
+with open("techlibs/xilinx/brams_init_36.vh", "w") as f:
for i in range(16):
init_snippets = ["INIT[%3d*9+8]" % (k+256*i,) for k in range(255, -1, -1)]
for k in range(4, 256, 4):
@@ -27,11 +27,11 @@ with open("brams_init_36.vh", "w") as f:
init_snippets[k] = "\n " + init_snippets[k]
print(".INIT_%02X({%s})," % (i, ", ".join(init_snippets)), file=f)
-with open("brams_init_16.vh", "w") as f:
+with open("techlibs/xilinx/brams_init_16.vh", "w") as f:
for i in range(64):
print(".INIT_%02X(INIT[%3d*256 +: 256])," % (i, i), file=f)
-with open("brams_init_32.vh", "w") as f:
+with open("techlibs/xilinx/brams_init_32.vh", "w") as f:
for i in range(128):
print(".INIT_%02X(INIT[%3d*256 +: 256])," % (i, i), file=f)