diff options
author | Simon Schubert <2@0x2c.org> | 2019-02-22 22:36:19 +0100 |
---|---|---|
committer | Simon Schubert <2@0x2c.org> | 2019-02-23 17:39:20 +0100 |
commit | 7044f56246417c4db9fc9df2feebb8138e56d51a (patch) | |
tree | d784d61762f742f01b26daf9ad06caf5ff54f930 /ice40/main.cc | |
parent | e8d3aaaf34895a073e4023192d97fc936d090990 (diff) | |
download | nextpnr-7044f56246417c4db9fc9df2feebb8138e56d51a.tar.gz nextpnr-7044f56246417c4db9fc9df2feebb8138e56d51a.tar.bz2 nextpnr-7044f56246417c4db9fc9df2feebb8138e56d51a.zip |
ice40: support u4k
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index 286f68db..2313c2ae 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -60,6 +60,7 @@ po::options_description Ice40CommandHandler::getArchOptions() specific.add_options()("hx1k", "set device type to iCE40HX1K"); specific.add_options()("hx8k", "set device type to iCE40HX8K"); specific.add_options()("up5k", "set device type to iCE40UP5K"); + specific.add_options()("u4k", "set device type to iCE5LP4K"); #endif specific.add_options()("package", po::value<std::string>(), "set device package"); specific.add_options()("pcf", po::value<std::string>(), "PCF constraints file to ingest"); @@ -78,7 +79,7 @@ void Ice40CommandHandler::validate() { conflicting_options(vm, "read", "json"); if ((vm.count("lp384") + vm.count("lp1k") + vm.count("lp8k") + vm.count("hx1k") + vm.count("hx8k") + - vm.count("up5k")) > 1) + vm.count("up5k") + vm.count("u4k")) > 1) log_error("Only one device type can be set\n"); } @@ -147,6 +148,11 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext() chipArgs.package = "sg48"; } + if (vm.count("u4k")) { + chipArgs.type = ArchArgs::U4K; + chipArgs.package = "sg48"; + } + if (chipArgs.type == ArchArgs::NONE) { chipArgs.type = ArchArgs::HX1K; chipArgs.package = "tq144"; |