aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/globals.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gowin/globals.cc')
-rw-r--r--gowin/globals.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gowin/globals.cc b/gowin/globals.cc
index 1794dd4c..21ee722a 100644
--- a/gowin/globals.cc
+++ b/gowin/globals.cc
@@ -32,8 +32,7 @@ NEXTPNR_NAMESPACE_BEGIN
bool GowinGlobalRouter::is_clock_port(PortRef const &user)
{
- if ((user.cell->type == id_SLICE || user.cell->type == id_ODDR || user.cell->type == id_ODDRC) &&
- user.port == id_CLK) {
+ if ((user.cell->type.in(id_SLICE, id_ODDR, id_ODDRC)) && user.port == id_CLK) {
return true;
}
return false;