mirror of https://github.com/YosysHQ/nextpnr.git
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:
parent
57682fe537
commit
fae2fb4dac
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue