aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-02-03 13:55:07 +0000
committerGitHub <noreply@github.com>2020-02-03 13:55:07 +0000
commitb4d029a55cd67bafcc9c364d609208a818227204 (patch)
treeba83fbf0d6c4b1e3b7644c921960929a23f8735a /ecp5
parentaed93a9390dd909111ab4526e7f3df8d24a2ee0a (diff)
parentf1dbb0c4f2242862dd365da8865e059d2c05a310 (diff)
downloadnextpnr-b4d029a55cd67bafcc9c364d609208a818227204.tar.gz
nextpnr-b4d029a55cd67bafcc9c364d609208a818227204.tar.bz2
nextpnr-b4d029a55cd67bafcc9c364d609208a818227204.zip
Merge pull request #385 from YosysHQ/router1-arc-fixes
Fixes for partial reconfig demo
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/globals.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecp5/globals.cc b/ecp5/globals.cc
index c0f4b504..6dbd7b6b 100644
--- a/ecp5/globals.cc
+++ b/ecp5/globals.cc
@@ -457,7 +457,8 @@ 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);
+ bool is_noglobal = bool_or_default(clock->attrs, ctx->id("noglobal"), false) ||
+ bool_or_default(clock->attrs, ctx->id("ECP5_IS_GLOBAL"), false);
if (is_noglobal)
continue;
log_info(" promoting clock net %s to global network\n", clock->name.c_str(ctx));