aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gowin/arch.cc2
-rw-r--r--gowin/pack.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc
index de252338..9f091a5d 100644
--- a/gowin/arch.cc
+++ b/gowin/arch.cc
@@ -420,7 +420,7 @@ void Arch::addBel(IdString name, IdString type, Loc loc, bool gb)
{
NPNR_ASSERT(bels.count(name) == 0);
NPNR_ASSERT(bel_by_loc.count(loc) == 0);
- BelInfo &bi = bels.at(name);
+ BelInfo &bi = bels[name];
bi.name = name;
bi.type = type;
bi.x = loc.x;
diff --git a/gowin/pack.cc b/gowin/pack.cc
index aa12325b..49d428a8 100644
--- a/gowin/pack.cc
+++ b/gowin/pack.cc
@@ -963,7 +963,8 @@ static void pack_iologic(Context *ctx)
delete_nets.insert(ci->ports.at(output).net->name);
q0_dst->disconnectPort(id_I);
ci->disconnectPort(output);
- bool have_XXX = ctx->bels.at(ctx->getBelByNameStr(iob_bel->second.as_string())).pins.count(id_GW9C_ALWAYS_LOW1);
+ bool have_XXX =
+ ctx->bels.at(ctx->getBelByNameStr(iob_bel->second.as_string())).pins.count(id_GW9C_ALWAYS_LOW1);
if (have_XXX) {
q0_dst->disconnectPort(id_GW9C_ALWAYS_LOW1);
q0_dst->connectPort(id_GW9C_ALWAYS_LOW1, ctx->nets[ctx->id("$PACKER_VCC_NET")].get());