diff options
author | gatecat <gatecat@ds0.me> | 2022-09-15 12:27:36 +0200 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-09-15 12:27:36 +0200 |
commit | 7ca3ba3835ee6083b441d693a30ef7530a7e2eed (patch) | |
tree | 95337e95db349c3d26ee16e8a3997f80122e723b /nexus/main.cc | |
parent | 79aad0988a17537409c9894081d9562c693745cf (diff) | |
download | nextpnr-7ca3ba3835ee6083b441d693a30ef7530a7e2eed.tar.gz nextpnr-7ca3ba3835ee6083b441d693a30ef7530a7e2eed.tar.bz2 nextpnr-7ca3ba3835ee6083b441d693a30ef7530a7e2eed.zip |
nexus: Add ES2 device names and --list-devices
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus/main.cc')
-rw-r--r-- | nexus/main.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nexus/main.cc b/nexus/main.cc index bca6661f..cfa06b74 100644 --- a/nexus/main.cc +++ b/nexus/main.cc @@ -48,6 +48,7 @@ po::options_description NexusCommandHandler::getArchOptions() { po::options_description specific("Architecture specific options"); specific.add_options()("device", po::value<std::string>(), "device name"); + specific.add_options()("list-devices", "list all supported device names"); specific.add_options()("fasm", po::value<std::string>(), "fasm file to write"); specific.add_options()("pdc", po::value<std::string>(), "physical constraints file"); specific.add_options()("no-post-place-opt", "disable post-place repacking (debugging use only)"); @@ -73,6 +74,10 @@ void NexusCommandHandler::customBitstream(Context *ctx) std::unique_ptr<Context> NexusCommandHandler::createContext(dict<std::string, Property> &values) { ArchArgs chipArgs; + if (vm.count("list-devices")) { + Arch::list_devices(); + exit(0); + } if (!vm.count("device")) { log_error("device must be specified on the command line (e.g. --device LIFCL-40-9BG400CES)\n"); } |