diff options
author | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-26 00:54:04 +0000 |
---|---|---|
committer | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-26 00:54:04 +0000 |
commit | f78a74b9cff79a41f992cfaf20deb88054ea27a6 (patch) | |
tree | 5086d59b3be9b4a0b6b3959955db79dc7c5f0bd9 /ice40/pack.cc | |
parent | 7a8e8999d21205044e707a2765dc444531d69cef (diff) | |
parent | 950f33c1bb6260f830e6974583d0e1424146b386 (diff) | |
download | nextpnr-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.cc | 12 |
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; |