diff options
author | Arnaud Durand <arnaud.durand@unifr.ch> | 2019-08-22 00:43:03 +0200 |
---|---|---|
committer | Arnaud Durand <arnaud.durand@unifr.ch> | 2019-08-22 00:43:03 +0200 |
commit | a947f09bfbc4d7a87c74a6df4b72c0fa7fbfffe9 (patch) | |
tree | 8a85800b4d843e5ab12ffd8a2874c9bdd71739fc | |
parent | c192ba261d77ad7f0a744fb90b01e4a5b63938c4 (diff) | |
download | nextpnr-a947f09bfbc4d7a87c74a6df4b72c0fa7fbfffe9.tar.gz nextpnr-a947f09bfbc4d7a87c74a6df4b72c0fa7fbfffe9.tar.bz2 nextpnr-a947f09bfbc4d7a87c74a6df4b72c0fa7fbfffe9.zip |
Restrict clock promotion to global
-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..724b0fd4 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_global = bool_or_default(clock->attrs, ctx->id("ECP5_IS_GLOBAL"), true); + if (!is_global) + 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; |