aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pcf.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-07-08 16:45:27 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-07-08 16:45:27 +0200
commit2726f3af914231ab8cfa04854a27b7fed0878f9d (patch)
treed06d37d59145e188958674b7b8fa8f1b8e750542 /ice40/pcf.cc
parent451d56051b300dabbe4f81b08fba35e9c9b663b6 (diff)
downloadnextpnr-2726f3af914231ab8cfa04854a27b7fed0878f9d.tar.gz
nextpnr-2726f3af914231ab8cfa04854a27b7fed0878f9d.tar.bz2
nextpnr-2726f3af914231ab8cfa04854a27b7fed0878f9d.zip
Fixes for new part types
Diffstat (limited to 'ice40/pcf.cc')
-rw-r--r--ice40/pcf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/pcf.cc b/ice40/pcf.cc
index 526b3d64..8cf5db39 100644
--- a/ice40/pcf.cc
+++ b/ice40/pcf.cc
@@ -64,8 +64,8 @@ bool apply_pcf(Context *ctx, std::string filename, std::istream &in)
log_error("Invalid value '%s' for -pullup (on line %d)\n", value.c_str(), lineno);
} else if (setting == "-pullup_resistor") {
const auto &value = words.at(++args_end);
- if (ctx->args.type != ArchArgs::UP5K)
- log_error("Pullup resistance can only be set on UP5K (on line %d)\n", lineno);
+ if (ctx->args.type != ArchArgs::UP5K && ctx->args.type != ArchArgs::UP3K)
+ log_error("Pullup resistance can only be set on UP5K/UP3K (on line %d)\n", lineno);
if (value != "3P3K" && value != "6P8K" && value != "10K" && value != "100K")
log_error("Invalid value '%s' for -pullup_resistor (on line %d)\n", value.c_str(), lineno);
extra_attrs.emplace_back(std::make_pair(ctx->id("PULLUP_RESISTOR"), value));