Add missing --top option
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
0faf07aac8
commit
e431d1a33f
@ -123,6 +123,7 @@ po::options_description CommandHandler::getGeneralOptions()
|
|||||||
#endif
|
#endif
|
||||||
general.add_options()("json", po::value<std::string>(), "JSON design file to ingest");
|
general.add_options()("json", po::value<std::string>(), "JSON design file to ingest");
|
||||||
general.add_options()("write", po::value<std::string>(), "JSON design file to write");
|
general.add_options()("write", po::value<std::string>(), "JSON design file to write");
|
||||||
|
general.add_options()("top", po::value<std::string>(), "name of top module");
|
||||||
general.add_options()("seed", po::value<int>(), "seed value for random number generator");
|
general.add_options()("seed", po::value<int>(), "seed value for random number generator");
|
||||||
general.add_options()("randomize-seed,r", "randomize seed value for random number generator");
|
general.add_options()("randomize-seed,r", "randomize seed value for random number generator");
|
||||||
|
|
||||||
@ -277,6 +278,10 @@ int CommandHandler::executeMain(std::unique_ptr<Context> ctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vm.count("top")) {
|
||||||
|
ctx->settings[ctx->id("frontend/top")] = vm["top"].as<std::string>();
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef NO_GUI
|
#ifndef NO_GUI
|
||||||
if (vm.count("gui")) {
|
if (vm.count("gui")) {
|
||||||
Application a(argc, argv, (vm.count("gui-no-aa") > 0));
|
Application a(argc, argv, (vm.count("gui-no-aa") > 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user