aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/main.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-09-15 12:27:36 +0200
committergatecat <gatecat@ds0.me>2022-09-15 12:27:36 +0200
commit7ca3ba3835ee6083b441d693a30ef7530a7e2eed (patch)
tree95337e95db349c3d26ee16e8a3997f80122e723b /nexus/main.cc
parent79aad0988a17537409c9894081d9562c693745cf (diff)
downloadnextpnr-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.cc5
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");
}