Restrict clock promotion to global

This commit is contained in:
Arnaud Durand 2019-08-22 00:43:03 +02:00
parent c192ba261d
commit a947f09bfb

View File

@ -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;