aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2023-03-22 18:57:14 +1000
committermyrtle <gatecat@ds0.me>2023-03-23 12:37:53 +0100
commitb36e8a3013ac70a9fbe71d2163f660dafe3b8b2f (patch)
treed0ed3c0590385d7b01714c14d74e19b1f2990a1b
parentc52906e8bca2dd399fd5a37ca50326c2b913d128 (diff)
downloadnextpnr-b36e8a3013ac70a9fbe71d2163f660dafe3b8b2f.tar.gz
nextpnr-b36e8a3013ac70a9fbe71d2163f660dafe3b8b2f.tar.bz2
nextpnr-b36e8a3013ac70a9fbe71d2163f660dafe3b8b2f.zip
gowin: bugfix
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
-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());