From 58a6110be198089d784b5ad3e2ecb611182bd5ea Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 22 Jun 2017 17:38:38 -0700 Subject: Add icefuzz support for the UP5K and rework underlying device specification for more flexibility. --- icefuzz/export.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'icefuzz/export.py') 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) - -- cgit v1.2.3