gatemate: improve PLL->BUFG error message

When a PLL output is connected to a BUFG, it can only be connected to it.

The message is improved in mentioning it and listing all ports connected and the pll name.

This simplify debug.
This commit is contained in:
Marc Emery 2026-06-18 16:50:35 +02:00
parent 57682fe537
commit 1fdb17e93b
1 changed files with 6 additions and 1 deletions

View File

@ -319,7 +319,12 @@ void GateMatePacker::pll_out(CellInfo *cell, IdString origPort, Loc fixed)
}
if (bufg) {
if (net->users.entries() != 1) {
log_error("Not handled BUFG.\n");
std::string msg = stringf("A PLL output (here %s of %s) connected to a BUFG could only connect to it, not %d ports:\n",
origPort.c_str(ctx), ctx->nameOf(cell), net->users.entries());
for (auto &usr : net->users) {
msg += stringf(" %s.%s\n", ctx->nameOf(usr.cell), ctx->nameOf(usr.port));
}
log_error("%s", msg.c_str());
}
} else {
move_ram_i_fixed(cell, origPort, fixed);