Skip to content

Commit

Permalink
Merge pull request #317 from DurandA/feature/ecp5-unpromote-clock
Browse files Browse the repository at this point in the history
Restrict clock promotion to global on ECP5
  • Loading branch information
gatecat authored Aug 24, 2019
2 parents c192ba2 + a26c9bb commit ccd9ca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ecp5/globals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ccd9ca2

Please sign in to comment.