diff options
author | David Shah <dave@ds0.me> | 2020-10-15 16:32:55 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:27 +0000 |
commit | c80144b7f08736ce769fd69b3f5a98c86b430d5b (patch) | |
tree | 2748da9371cf531cf335c57a08b8bfeeed88418c /nexus/arch.cc | |
parent | 901bf2bb1eeb97386fc22f6453240f61c0aa676b (diff) | |
download | nextpnr-c80144b7f08736ce769fd69b3f5a98c86b430d5b.tar.gz nextpnr-c80144b7f08736ce769fd69b3f5a98c86b430d5b.tar.bz2 nextpnr-c80144b7f08736ce769fd69b3f5a98c86b430d5b.zip |
nexus: Generate FASM files that can be used standalone
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/arch.cc')
-rw-r--r-- | nexus/arch.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nexus/arch.cc b/nexus/arch.cc index 40efa62d..8005a130 100644 --- a/nexus/arch.cc +++ b/nexus/arch.cc @@ -77,6 +77,14 @@ Arch::Arch(ArchArgs args) : args(args) log_error("Unknown device string '%s' (expected device name like 'LIFCL-40-8SG72C')\n", args.device.c_str()); package = args.device.substr(last_sep + 2, (package_end - (last_sep + 2)) + 1); rating = args.device.substr(package_end + 1); + + // Check for 'ES' part + if (rating.size() > 1 && rating.substr(1) == "ES") { + variant = "ES"; + } else { + variant = ""; + } + // Load database std::string chipdb = stringf("nexus/chipdb-%s.bin", family.c_str()); auto db_ptr = reinterpret_cast<const RelPtr<DatabasePOD> *>(get_chipdb(chipdb)); |