cleanup: Fix compiler warnings

Signed-off-by: D. Shah <dave@ds0.me>
This commit is contained in:
D. Shah 2021-01-28 15:02:08 +00:00
parent 6ecf7f86c8
commit 5fc3e8e4d2
2 changed files with 3 additions and 3 deletions

View File

@ -396,7 +396,8 @@ struct Router2
if (ctx->getBelPinType(bp.bel, bp.pin) != PORT_IN) if (ctx->getBelPinType(bp.bel, bp.pin) != PORT_IN)
return false; return false;
for (auto p : ctx->getPipsUphill(wire)) for (auto p : ctx->getPipsUphill(wire))
return false; if (ctx->checkPipAvail(p))
return false;
return true; return true;
} }

View File

@ -1700,9 +1700,8 @@ struct NexusPacker
: std::string("USED_AS_LOWER_BIT_GENERATION"); : std::string("USED_AS_LOWER_BIT_GENERATION");
} }
// Create final mult36 if needed // Create final mult36 if needed
CellInfo *mult36 = nullptr;
if (mult36_used) { if (mult36_used) {
mult36 = create_dsp_cell(ci->name, id_MULT36_CORE, preadd9[0], 6, 6); create_dsp_cell(ci->name, id_MULT36_CORE, preadd9[0], 6, 6);
} }
// Configure output registers // Configure output registers