aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/globals.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/globals.cc')
-rw-r--r--ecp5/globals.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ecp5/globals.cc b/ecp5/globals.cc
index 71188aa0..7123705a 100644
--- a/ecp5/globals.cc
+++ b/ecp5/globals.cc
@@ -53,7 +53,9 @@ class Ecp5GlobalRouter
private:
bool is_clock_port(const PortRef &user)
{
- if (user.cell->type == id_TRELLIS_SLICE && (user.port == id_CLK || user.port == id_WCK))
+ if (user.cell->type == id_TRELLIS_FF && user.port == id_CLK)
+ return true;
+ if (user.cell->type == id_TRELLIS_COMB && user.port == id_WCK)
return true;
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))
@@ -65,7 +67,9 @@ class Ecp5GlobalRouter
bool is_logic_port(const PortRef &user)
{
- if (user.cell->type == id_TRELLIS_SLICE && user.port != id_CLK && user.port != id_WCK)
+ if (user.cell->type == id_TRELLIS_FF && user.port != id_CLK)
+ return true;
+ if (user.cell->type == id_TRELLIS_COMB && user.port != id_WCK)
return true;
return false;
}