aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/gowin/brams_init.py
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2022-02-09 09:25:45 +0100
committerMarcelina Koƛcielnicka <mwk@0x04.net>2022-05-18 17:32:56 +0200
commite4d811561cfb8e7acdbd70dd500600427e3a1756 (patch)
treebbd545b1374c14f9af255643496f669a33d7aadd /techlibs/gowin/brams_init.py
parent0a8eaca322a622610efe5a0d33d1cda83e4afa8c (diff)
downloadyosys-e4d811561cfb8e7acdbd70dd500600427e3a1756.tar.gz
yosys-e4d811561cfb8e7acdbd70dd500600427e3a1756.tar.bz2
yosys-e4d811561cfb8e7acdbd70dd500600427e3a1756.zip
gowin: Use `memory_libmap` pass.
Diffstat (limited to 'techlibs/gowin/brams_init.py')
-rwxr-xr-xtechlibs/gowin/brams_init.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/techlibs/gowin/brams_init.py b/techlibs/gowin/brams_init.py
deleted file mode 100755
index b78eb8da5..000000000
--- a/techlibs/gowin/brams_init.py
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env python3
-
-with open("techlibs/gowin/bram_init_16.vh", "w") as f:
- for i in range(0, 0x40):
- low = i << 8
- hi = ((i+1) << 8)-1
- snippet = "INIT[%d:%d]" % (hi, low)
- print(".INIT_RAM_%02X({%s})," % (i, snippet), file=f)