gatemate: improve PLL->BUFG error message (#1739)

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:
mrcmry 2026-06-19 08:45:32 +02:00 committed by GitHub
parent 57682fe537
commit fae2fb4dac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);