ecp5: Add --basecfg deprecation warning
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
882775acef
commit
4b7ec5cecb
13
ecp5/main.cc
13
ecp5/main.cc
@ -61,7 +61,10 @@ po::options_description ECP5CommandHandler::getArchOptions()
|
||||
specific.add_options()("package", po::value<std::string>(), "select device package (defaults to CABGA381)");
|
||||
specific.add_options()("speed", po::value<int>(), "select device speedgrade (6, 7 or 8)");
|
||||
|
||||
specific.add_options()("basecfg", po::value<std::string>(), "base chip configuration in Trellis text format");
|
||||
specific.add_options()("basecfg", po::value<std::string>(),
|
||||
"base chip configuration in Trellis text format (deprecated)");
|
||||
specific.add_options()("override-basecfg", po::value<std::string>(),
|
||||
"base chip configuration in Trellis text format");
|
||||
specific.add_options()("textcfg", po::value<std::string>(), "textual configuration in Trellis format to write");
|
||||
|
||||
specific.add_options()("lpf", po::value<std::vector<std::string>>(), "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<std::string>();
|
||||
} else if (vm.count("override-basecfg")) {
|
||||
basecfg = vm["basecfg"].as<std::string>();
|
||||
}
|
||||
|
||||
std::string textcfg;
|
||||
if (vm.count("textcfg"))
|
||||
|
Loading…
Reference in New Issue
Block a user