aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-07-08 13:22:59 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-07-08 13:22:59 +0200
commit3be76a837d20fb81814067cebdd45f482cbcbb33 (patch)
tree6612abef3184b4163ccd03682d5272aded16a795 /ice40/main.cc
parentbb3dad7ce7dbfdebb4a48b16019900d652293f94 (diff)
downloadnextpnr-3be76a837d20fb81814067cebdd45f482cbcbb33.tar.gz
nextpnr-3be76a837d20fb81814067cebdd45f482cbcbb33.tar.bz2
nextpnr-3be76a837d20fb81814067cebdd45f482cbcbb33.zip
Support 4K parts directly
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc10
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;
}