aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/delay.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/delay.cc
parent451d56051b300dabbe4f81b08fba35e9c9b663b6 (diff)
downloadnextpnr-2726f3af914231ab8cfa04854a27b7fed0878f9d.tar.gz
nextpnr-2726f3af914231ab8cfa04854a27b7fed0878f9d.tar.bz2
nextpnr-2726f3af914231ab8cfa04854a27b7fed0878f9d.zip
Fixes for new part types
Diffstat (limited to 'ice40/delay.cc')
-rw-r--r--ice40/delay.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/ice40/delay.cc b/ice40/delay.cc
index 707208d8..2c78b84f 100644
--- a/ice40/delay.cc
+++ b/ice40/delay.cc
@@ -132,13 +132,15 @@ struct model_params_t
static const model_params_t model_up5k = {1761, 305798, 16705, 296830, 24430, -40369, 33038,
-162662, 94, 4705, -1099, -1761, -418, -838};
- if (args.type == ArchArgs::HX1K || args.type == ArchArgs::HX8K)
+ if (args.type == ArchArgs::HX1K || args.type == ArchArgs::HX4K || args.type == ArchArgs::HX8K)
return model_hx8k;
- if (args.type == ArchArgs::LP384 || args.type == ArchArgs::LP1K || args.type == ArchArgs::LP8K)
+ if (args.type == ArchArgs::LP384 || args.type == ArchArgs::LP1K || args.type == ArchArgs::LP4K ||
+ args.type == ArchArgs::LP8K)
return model_lp8k;
- if (args.type == ArchArgs::UP5K || args.type == ArchArgs::U4K)
+ if (args.type == ArchArgs::UP3K || args.type == ArchArgs::UP5K || args.type == ArchArgs::U1K ||
+ args.type == ArchArgs::U2K || args.type == ArchArgs::U4K)
return model_up5k;
NPNR_ASSERT(0);