mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-08-22 06:07:27 +02:00
nexus: Improve error reporting for illegal carry chains
Signed-off-by: gatecat <[email protected]>
This commit is contained in:
+7
-1
@@ -1318,8 +1318,14 @@ struct NexusPacker
|
||||
CellInfo *ci = cell.second.get();
|
||||
if (ci->type != id_CCU2)
|
||||
continue;
|
||||
if (ci->getPort(id_CIN) != nullptr)
|
||||
NetInfo *cin = ci->getPort(id_CIN);
|
||||
if (cin) {
|
||||
if (cin->driver.cell && cin->driver.cell->type != id_CCU2) {
|
||||
log_error("CCU2 '%s' CIN net '%s' driven by non-CCU2 cell '%s'.\n",
|
||||
ctx->nameOf(ci), ctx->nameOf(cin), ctx->nameOf(cin->driver.cell));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
roots.push_back(ci);
|
||||
}
|
||||
for (CellInfo *root : roots) {
|
||||
|
||||
Reference in New Issue
Block a user