diff options
author | David Shah <dave@ds0.me> | 2019-08-24 19:43:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-24 19:43:50 +0100 |
commit | ccd9ca2a30374341207a975cfd1de172b9a59480 (patch) | |
tree | 14451d70cce10b579296988725a00ede1f8265b6 | |
parent | c192ba261d77ad7f0a744fb90b01e4a5b63938c4 (diff) | |
parent | a26c9bb6d9aaa78fd3deae94e3db840286dacf8a (diff) | |
download | nextpnr-ccd9ca2a30374341207a975cfd1de172b9a59480.tar.gz nextpnr-ccd9ca2a30374341207a975cfd1de172b9a59480.tar.bz2 nextpnr-ccd9ca2a30374341207a975cfd1de172b9a59480.zip |
Merge pull request #317 from DurandA/feature/ecp5-unpromote-clock
Restrict clock promotion to global on ECP5
-rw-r--r-- | ecp5/globals.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ecp5/globals.cc b/ecp5/globals.cc index 9dd4449b..bc5c66df 100644 --- a/ecp5/globals.cc +++ b/ecp5/globals.cc @@ -435,6 +435,9 @@ class Ecp5GlobalRouter log_info("Promoting globals...\n"); auto clocks = get_clocks(); for (auto clock : clocks) { + bool is_noglobal = bool_or_default(clock->attrs, ctx->id("noglobal"), false); + if (is_noglobal) + continue; log_info(" promoting clock net %s to global network\n", clock->name.c_str(ctx)); if (is_ooc) // Don't actually do anything in OOC mode, global routing will be done in the full design clock->is_global = true; |