aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2023-03-22 18:08:38 +1000
committermyrtle <gatecat@ds0.me>2023-03-23 12:37:53 +0100
commit38eb1f05ff2baaab8e7d83f4a5747eae7f5cddcb (patch)
tree76f9a182941243edfb0511e9c2bca71d0e1b4bbf
parent95ace0fade44633db7ea6d3d65702dc8a2d1d488 (diff)
downloadnextpnr-38eb1f05ff2baaab8e7d83f4a5747eae7f5cddcb.tar.gz
nextpnr-38eb1f05ff2baaab8e7d83f4a5747eae7f5cddcb.tar.bz2
nextpnr-38eb1f05ff2baaab8e7d83f4a5747eae7f5cddcb.zip
gowin: Change the way errors are processed
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
-rw-r--r--gowin/pack.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gowin/pack.cc b/gowin/pack.cc
index 6e875a8c..e335241a 100644
--- a/gowin/pack.cc
+++ b/gowin/pack.cc
@@ -922,8 +922,8 @@ static void pack_iologic(Context *ctx)
auto iob_bel = q0_dst->attrs.find(id_BEL);
if (iob_bel == q0_dst->attrs.end()) {
- log_info("No constraints for %s\n", ctx->nameOf(q0_dst));
- NPNR_ASSERT_FALSE("The pins for IDES/OSER must be specified explicitly.");
+ log_error("No constraints for %s. The pins for IDES/OSER must be specified explicitly.\n",
+ ctx->nameOf(q0_dst));
}
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));
BelId bel = ctx->getBelByLocation(loc);
if (bel == BelId()) {
- log_info("No bel for %s at %s\n", ctx->nameOf(ci), iob_bel->second.as_string().c_str());
- NPNR_ASSERT_FALSE("Can't place IDES/OSER here");
+ log_info("No bel for %s at %s. Can't place IDES/OSER here\n", ctx->nameOf(ci),
+ iob_bel->second.as_string().c_str());
}
std::string out_mode;