From dbcda26ed99bd8aedcc2a634e95e03165b3fc69c Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 7 Nov 2023 17:53:26 +0100 Subject: [PATCH] machxo2: ignore promoting to global when bel is not constrained --- machxo2/pack.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machxo2/pack.cc b/machxo2/pack.cc index 51c0dae1df..a90b2ffb63 100644 --- a/machxo2/pack.cc +++ b/machxo2/pack.cc @@ -1592,6 +1592,8 @@ class MachXO2Packer // Promote the N highest fanout clocks for (size_t i = 0; i < std::min(clk_fanout.size(), available_globals); i++) { NetInfo *net = ctx->nets.at(clk_fanout.at(i).second).get(); + if (!net->driver.cell->attrs.count(id_BEL)) + continue; log_info(" promoting clock net '%s'\n", ctx->nameOf(net)); insert_buffer(net, id_DCCA, "glb_clk", id_CLKI, id_CLKO, [&](const PortRef &port) { return port.cell->type != id_DCCA; });