From 38eb1f05ff2baaab8e7d83f4a5747eae7f5cddcb Mon Sep 17 00:00:00 2001 From: YRabbit Date: Wed, 22 Mar 2023 18:08:38 +1000 Subject: [PATCH] gowin: Change the way errors are processed Signed-off-by: YRabbit --- gowin/pack.cc | 8 ++++---- 1 file 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;