aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pack.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-26 00:54:04 +0000
committerEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-26 00:54:04 +0000
commitf78a74b9cff79a41f992cfaf20deb88054ea27a6 (patch)
tree5086d59b3be9b4a0b6b3959955db79dc7c5f0bd9 /ice40/pack.cc
parent7a8e8999d21205044e707a2765dc444531d69cef (diff)
parent950f33c1bb6260f830e6974583d0e1424146b386 (diff)
downloadnextpnr-f78a74b9cff79a41f992cfaf20deb88054ea27a6.tar.gz
nextpnr-f78a74b9cff79a41f992cfaf20deb88054ea27a6.tar.bz2
nextpnr-f78a74b9cff79a41f992cfaf20deb88054ea27a6.zip
Merge branch 'eddieh/idstring_speedup' into 'master'
Reduce id() lookups for commonly used update_budget() See merge request SymbioticEDA/nextpnr!20
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r--ice40/pack.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 91dcf846..8182eb70 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -662,12 +662,12 @@ static void pack_special(Context *ctx)
auto feedback_path = packed->params[ctx->id("FEEDBACK_PATH")];
packed->params[ctx->id("FEEDBACK_PATH")] =
- feedback_path == "DELAY"
- ? "0"
- : feedback_path == "SIMPLE" ? "1"
- : feedback_path == "PHASE_AND_DELAY"
- ? "2"
- : feedback_path == "EXTERNAL" ? "6" : feedback_path;
+ feedback_path == "DELAY" ? "0" : feedback_path == "SIMPLE"
+ ? "1"
+ : feedback_path == "PHASE_AND_DELAY"
+ ? "2"
+ : feedback_path == "EXTERNAL" ? "6"
+ : feedback_path;
packed->params[ctx->id("PLLTYPE")] = std::to_string(sb_pll40_type(ctx, ci));
NetInfo *pad_packagepin_net = nullptr;