From 4b7ec5cecbca186b2c485196c129cde5b95afc03 Mon Sep 17 00:00:00 2001 From: David Shah Date: Fri, 8 Feb 2019 13:52:39 +0000 Subject: ecp5: Add --basecfg deprecation warning Signed-off-by: David Shah --- ecp5/main.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ecp5/main.cc b/ecp5/main.cc index 12afb09d..4f9ac3da 100644 --- a/ecp5/main.cc +++ b/ecp5/main.cc @@ -61,7 +61,10 @@ po::options_description ECP5CommandHandler::getArchOptions() specific.add_options()("package", po::value(), "select device package (defaults to CABGA381)"); specific.add_options()("speed", po::value(), "select device speedgrade (6, 7 or 8)"); - specific.add_options()("basecfg", po::value(), "base chip configuration in Trellis text format"); + specific.add_options()("basecfg", po::value(), + "base chip configuration in Trellis text format (deprecated)"); + specific.add_options()("override-basecfg", po::value(), + "base chip configuration in Trellis text format"); specific.add_options()("textcfg", po::value(), "textual configuration in Trellis format to write"); specific.add_options()("lpf", po::value>(), "LPF pin constraint file(s)"); @@ -77,8 +80,14 @@ void ECP5CommandHandler::validate() void ECP5CommandHandler::customBitstream(Context *ctx) { std::string basecfg; - if (vm.count("basecfg")) + if (vm.count("basecfg")) { + log_warning("--basecfg is deprecated.\nIf you are using a default baseconfig (from prjtrellis/misc/basecfgs), " + "these are now embedded in nextpnr - please remove --basecfg.\nIf you are using a non-standard " + "baseconfig in a special application, switch to using --override-basecfg.\n"); basecfg = vm["basecfg"].as(); + } else if (vm.count("override-basecfg")) { + basecfg = vm["basecfg"].as(); + } std::string textcfg; if (vm.count("textcfg")) -- cgit v1.2.3