aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/globals.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-12-27 15:53:00 +0000
committerDavid Shah <dave@ds0.me>2019-12-27 15:53:00 +0000
commit0d43aff2682d91817ea4a1fb5dff6e169ae9a659 (patch)
tree2f32179c1c43110aeb356e421ab0439495ebb7ee /ecp5/globals.cc
parent4e0ca50db137eb9d10098582be607c98601f8375 (diff)
downloadnextpnr-0d43aff2682d91817ea4a1fb5dff6e169ae9a659.tar.gz
nextpnr-0d43aff2682d91817ea4a1fb5dff6e169ae9a659.tar.bz2
nextpnr-0d43aff2682d91817ea4a1fb5dff6e169ae9a659.zip
ecp5: Always promote IOLOGIC SCLK to global
Fixes #374 Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/globals.cc')
-rw-r--r--ecp5/globals.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ecp5/globals.cc b/ecp5/globals.cc
index da2ba8f0..c0f4b504 100644
--- a/ecp5/globals.cc
+++ b/ecp5/globals.cc
@@ -58,7 +58,7 @@ class Ecp5GlobalRouter
if (user.cell->type == id_DCUA && (user.port == id_CH0_FF_RXI_CLK || user.port == id_CH1_FF_RXI_CLK ||
user.port == id_CH0_FF_TXI_CLK || user.port == id_CH1_FF_TXI_CLK))
return true;
- if ((user.cell->type == id_IOLOGIC || user.cell->type == id_SIOLOGIC) && user.port == id_CLK)
+ if ((user.cell->type == id_IOLOGIC || user.cell->type == id_SIOLOGIC) && (user.port == id_CLK))
return true;
return false;
}
@@ -74,6 +74,8 @@ class Ecp5GlobalRouter
clockCount[ni->name]++;
if (user.cell->type == id_DCUA)
clockCount[ni->name] += 100;
+ if (user.cell->type == id_IOLOGIC || user.cell->type == id_SIOLOGIC)
+ clockCount[ni->name] += 10;
}
}
// log_info("clkcount %s: %d\n", ni->name.c_str(ctx),clockCount[ni->name]);