diff options
author | David Shah <dave@ds0.me> | 2020-11-05 11:44:34 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:28 +0000 |
commit | 629a06b0ae20f93448881c2e534703e067f997c3 (patch) | |
tree | badc68a378c1a1d218269814667f3b7d800652a2 | |
parent | f41b4045d47ee2632469398f86e2fb71eeb1d01f (diff) | |
download | nextpnr-629a06b0ae20f93448881c2e534703e067f997c3.tar.gz nextpnr-629a06b0ae20f93448881c2e534703e067f997c3.tar.bz2 nextpnr-629a06b0ae20f93448881c2e534703e067f997c3.zip |
nexus: Add error if device not specified
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r-- | nexus/main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nexus/main.cc b/nexus/main.cc index 5b0ba94c..495793a3 100644 --- a/nexus/main.cc +++ b/nexus/main.cc @@ -67,6 +67,9 @@ void NexusCommandHandler::customBitstream(Context *ctx) std::unique_ptr<Context> NexusCommandHandler::createContext(std::unordered_map<std::string, Property> &values) { ArchArgs chipArgs; + if (!vm.count("device")) { + log_error("device must be specified on the command line (e.g. --device LIFCL-40-9BG400CES)\n"); + } chipArgs.device = vm["device"].as<std::string>(); return std::unique_ptr<Context>(new Context(chipArgs)); } |