gowin: Change the way errors are processed
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
95ace0fade
commit
38eb1f05ff
@ -922,8 +922,8 @@ static void pack_iologic(Context *ctx)
|
|||||||
|
|
||||||
auto iob_bel = q0_dst->attrs.find(id_BEL);
|
auto iob_bel = q0_dst->attrs.find(id_BEL);
|
||||||
if (iob_bel == q0_dst->attrs.end()) {
|
if (iob_bel == q0_dst->attrs.end()) {
|
||||||
log_info("No constraints for %s\n", ctx->nameOf(q0_dst));
|
log_error("No constraints for %s. The pins for IDES/OSER must be specified explicitly.\n",
|
||||||
NPNR_ASSERT_FALSE("The pins for IDES/OSER must be specified explicitly.");
|
ctx->nameOf(q0_dst));
|
||||||
}
|
}
|
||||||
|
|
||||||
Loc loc = ctx->getBelLocation(ctx->getBelByNameStr(iob_bel->second.as_string()));
|
Loc loc = ctx->getBelLocation(ctx->getBelByNameStr(iob_bel->second.as_string()));
|
||||||
@ -931,8 +931,8 @@ static void pack_iologic(Context *ctx)
|
|||||||
ci->setAttr(id_BEL, ctx->getBelName(ctx->getBelByLocation(loc)).str(ctx));
|
ci->setAttr(id_BEL, ctx->getBelName(ctx->getBelByLocation(loc)).str(ctx));
|
||||||
BelId bel = ctx->getBelByLocation(loc);
|
BelId bel = ctx->getBelByLocation(loc);
|
||||||
if (bel == BelId()) {
|
if (bel == BelId()) {
|
||||||
log_info("No bel for %s at %s\n", ctx->nameOf(ci), iob_bel->second.as_string().c_str());
|
log_info("No bel for %s at %s. Can't place IDES/OSER here\n", ctx->nameOf(ci),
|
||||||
NPNR_ASSERT_FALSE("Can't place IDES/OSER here");
|
iob_bel->second.as_string().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string out_mode;
|
std::string out_mode;
|
||||||
|
Loading…
Reference in New Issue
Block a user