aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/facade_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'machxo2/facade_import.py')
-rw-r--r--machxo2/facade_import.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/machxo2/facade_import.py b/machxo2/facade_import.py
index dd21a698..d21557ae 100644
--- a/machxo2/facade_import.py
+++ b/machxo2/facade_import.py
@@ -70,9 +70,14 @@ def main():
pytrellis.load_database(database.get_db_root())
+ # Dummy
+ dev_name = "1200"
+
bba = BinaryBlobAssembler()
bba.pre('#include "nextpnr.h"')
+ bba.pre('#include "embed.h"')
bba.pre('NEXTPNR_NAMESPACE_BEGIN')
+ bba.post('EmbeddedFile chipdb_file_%s("machxo2/chipdb-%s.bin", chipdb_blob_%s);' % (dev_name, dev_name, dev_name))
bba.post('NEXTPNR_NAMESPACE_END')
bba.push("chipdb_blob_%s" % args.device)
bba.u8(0, None)