aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/export.py
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-06-22 17:38:38 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-06-22 17:38:38 -0700
commit58a6110be198089d784b5ad3e2ecb611182bd5ea (patch)
tree3f15bebbc4b95584c93ad0f3412b53b7f55c8d5e /icefuzz/export.py
parented8c4e8c034ffca4424f92fa683ff631c4205b50 (diff)
downloadicestorm-58a6110be198089d784b5ad3e2ecb611182bd5ea.tar.gz
icestorm-58a6110be198089d784b5ad3e2ecb611182bd5ea.tar.bz2
icestorm-58a6110be198089d784b5ad3e2ecb611182bd5ea.zip
Add icefuzz support for the UP5K and rework underlying device specification for more flexibility.
Diffstat (limited to 'icefuzz/export.py')
-rw-r--r--icefuzz/export.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/icefuzz/export.py b/icefuzz/export.py
index ae14997..52625f2 100644
--- a/icefuzz/export.py
+++ b/icefuzz/export.py
@@ -1,10 +1,16 @@
#!/usr/bin/env python3
+import os
+
+device_class = os.getenv("ICEDEVICE")
with open("../icebox/iceboxdb.py", "w") as f:
- for i in [ "database_io", "database_logic", "database_ramb", "database_ramt", "database_ramb_8k", "database_ramt_8k" ]:
+ files = [ "database_io", "database_logic", "database_ramb", "database_ramt"]
+ for device_class in ["5k", "8k"]:
+ files.append("database_ramb_" + device_class)
+ files.append("database_ramt_" + device_class)
+ for i in files:
print('%s_txt = """' % i, file=f)
with open("%s.txt" % i, "r") as fi:
for line in fi:
print(line, end="", file=f)
print('"""', file=f)
-