diff options
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index 497d580b..fedd0918 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -59,6 +59,8 @@ po::options_description Ice40CommandHandler::getArchOptions() if (Arch::isAvailable(ArchArgs::HX1K)) specific.add_options()("hx1k", "set device type to iCE40HX1K"); if (Arch::isAvailable(ArchArgs::HX8K)) + specific.add_options()("hx4k", "set device type to iCE40HX4K"); + if (Arch::isAvailable(ArchArgs::HX4K)) specific.add_options()("hx8k", "set device type to iCE40HX8K"); if (Arch::isAvailable(ArchArgs::UP5K)) specific.add_options()("up5k", "set device type to iCE40UP5K"); @@ -142,6 +144,11 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<s chipArgs.package = "tq144"; } + if (vm.count("hx4k")) { + chipArgs.type = ArchArgs::HX4K; + chipArgs.package = "tq144"; + } + if (vm.count("hx8k")) { chipArgs.type = ArchArgs::HX8K; chipArgs.package = "ct256"; @@ -185,6 +192,9 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<s if (arch_type == "hx1k") { chipArgs.type = ArchArgs::HX1K; } + if (arch_type == "hx4k") { + chipArgs.type = ArchArgs::HX4K; + } if (arch_type == "hx8k") { chipArgs.type = ArchArgs::HX8K; } |