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/arch.h | |
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/arch.h')
-rw-r--r-- | ecp5/arch.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h index c13f2041..0f351319 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -207,16 +207,6 @@ NPNR_PACKED_STRUCT(struct ChipInfoPOD { RelPtr<SpeedGradePOD> speed_grades; }); -#if defined(WIN32) || defined(EXTERNAL_CHIPDB_ROOT) -extern const char *chipdb_blob_25k; -extern const char *chipdb_blob_45k; -extern const char *chipdb_blob_85k; -#else -extern const char chipdb_blob_25k[]; -extern const char chipdb_blob_45k[]; -extern const char chipdb_blob_85k[]; -#endif - /************************ End of chipdb section. ************************/ struct BelIterator @@ -494,6 +484,9 @@ struct Arch : BaseCtx ArchArgs args; Arch(ArchArgs args); + static bool isAvailable(ArchArgs::ArchArgsTypes chip); + static std::vector<std::string> getSupportedPackages(ArchArgs::ArchArgsTypes chip); + std::string getChipName() const; std::string getFullChipName() const; |