aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/resource
diff options
context:
space:
mode:
authorSimon Schubert <2@0x2c.org>2019-02-22 22:36:19 +0100
committerSimon Schubert <2@0x2c.org>2019-02-23 17:39:20 +0100
commit7044f56246417c4db9fc9df2feebb8138e56d51a (patch)
treed784d61762f742f01b26daf9ad06caf5ff54f930 /ice40/resource
parente8d3aaaf34895a073e4023192d97fc936d090990 (diff)
downloadnextpnr-7044f56246417c4db9fc9df2feebb8138e56d51a.tar.gz
nextpnr-7044f56246417c4db9fc9df2feebb8138e56d51a.tar.bz2
nextpnr-7044f56246417c4db9fc9df2feebb8138e56d51a.zip
ice40: support u4k
Diffstat (limited to 'ice40/resource')
-rw-r--r--ice40/resource/chipdb.rc1
-rw-r--r--ice40/resource/embed.cc4
-rw-r--r--ice40/resource/resource.h1
3 files changed, 5 insertions, 1 deletions
diff --git a/ice40/resource/chipdb.rc b/ice40/resource/chipdb.rc
index a6f2dbe8..46459538 100644
--- a/ice40/resource/chipdb.rc
+++ b/ice40/resource/chipdb.rc
@@ -3,4 +3,5 @@
IDR_CHIPDB_384 BINARYFILE "..\chipdbs\chipdb-384.bin"
IDR_CHIPDB_1K BINARYFILE "..\chipdbs\chipdb-1k.bin"
IDR_CHIPDB_5K BINARYFILE "..\chipdbs\chipdb-5k.bin"
+IDR_CHIPDB_U4K BINARYFILE "..\chipdbs\chipdb-u4k.bin"
IDR_CHIPDB_8K BINARYFILE "..\chipdbs\chipdb-8k.bin"
diff --git a/ice40/resource/embed.cc b/ice40/resource/embed.cc
index 74f2eee9..048ac474 100644
--- a/ice40/resource/embed.cc
+++ b/ice40/resource/embed.cc
@@ -8,6 +8,7 @@ NEXTPNR_NAMESPACE_BEGIN
const char *chipdb_blob_384;
const char *chipdb_blob_1k;
const char *chipdb_blob_5k;
+const char *chipdb_blob_u4k;
const char *chipdb_blob_8k;
const char *LoadFileInResource(int name, int type, DWORD &size)
@@ -24,7 +25,8 @@ void load_chipdb()
chipdb_blob_384 = LoadFileInResource(IDR_CHIPDB_384, BINARYFILE, size);
chipdb_blob_1k = LoadFileInResource(IDR_CHIPDB_1K, BINARYFILE, size);
chipdb_blob_5k = LoadFileInResource(IDR_CHIPDB_5K, BINARYFILE, size);
+ chipdb_blob_u4k = LoadFileInResource(IDR_CHIPDB_U4K, BINARYFILE, size);
chipdb_blob_8k = LoadFileInResource(IDR_CHIPDB_8K, BINARYFILE, size);
}
-NEXTPNR_NAMESPACE_END \ No newline at end of file
+NEXTPNR_NAMESPACE_END
diff --git a/ice40/resource/resource.h b/ice40/resource/resource.h
index 46997ae5..4dacbf61 100644
--- a/ice40/resource/resource.h
+++ b/ice40/resource/resource.h
@@ -3,3 +3,4 @@
#define IDR_CHIPDB_1K 102
#define IDR_CHIPDB_5K 103
#define IDR_CHIPDB_8K 104
+#define IDR_CHIPDB_U4K 105