Rename clock restriction attribute to "noglobal"

This commit is contained in:
Arnaud Durand 2019-08-24 18:09:42 +02:00
parent a947f09bfb
commit a26c9bb6d9

View File

@ -435,8 +435,8 @@ 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)
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