diff options
author | David Shah <dave@ds0.me> | 2020-06-26 11:32:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 11:32:13 +0100 |
commit | 4f4aa53120b8857f1d526e5d5265155270e40508 (patch) | |
tree | 975f36dbd2b3f5b55e6696a817a5cf02719122c7 /ecp5/trellis_import.py | |
parent | 2873133479a3ebbbb809b5cd107d32dae7e7c650 (diff) | |
parent | 89e0cc8078ecbb57ca450cc6c8a40f6b634b8c9c (diff) | |
download | nextpnr-4f4aa53120b8857f1d526e5d5265155270e40508.tar.gz nextpnr-4f4aa53120b8857f1d526e5d5265155270e40508.tar.bz2 nextpnr-4f4aa53120b8857f1d526e5d5265155270e40508.zip |
Merge pull request #460 from whitequark/better-embed
Simplify and improve chipdb embedding/loading
Diffstat (limited to 'ecp5/trellis_import.py')
-rwxr-xr-x | ecp5/trellis_import.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ecp5/trellis_import.py b/ecp5/trellis_import.py index b591e09f..174f475f 100755 --- a/ecp5/trellis_import.py +++ b/ecp5/trellis_import.py @@ -391,7 +391,9 @@ def write_database(dev_name, chip, ddrg, endianness): bba = BinaryBlobAssembler() bba.pre('#include "nextpnr.h"') + bba.pre('#include "embed.h"') bba.pre('NEXTPNR_NAMESPACE_BEGIN') + bba.post('EmbeddedFile chipdb_file_%s("ecp5/chipdb-%s.bin", chipdb_blob_%s);' % (dev_name, dev_name, dev_name)) bba.post('NEXTPNR_NAMESPACE_END') bba.push("chipdb_blob_%s" % dev_name) bba.r("chip_info", "chip_info") |