diff options
author | gatecat <gatecat@ds0.me> | 2022-03-04 16:06:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 16:06:41 +0000 |
commit | 2c8062bdb396682a558ecbdc574620e4121b7faf (patch) | |
tree | 385a7c473f7f76731f54beefce2316a54059e735 /gowin/arch.cc | |
parent | 2c6ca4836fd30faa5cdbd931a352866e5a04104d (diff) | |
parent | c93a3f35aca4399c290840f150f713aa81a515bb (diff) | |
download | nextpnr-2c8062bdb396682a558ecbdc574620e4121b7faf.tar.gz nextpnr-2c8062bdb396682a558ecbdc574620e4121b7faf.tar.bz2 nextpnr-2c8062bdb396682a558ecbdc574620e4121b7faf.zip |
Merge pull request #931 from yrabbit/bugfix-0
gowin: BUGFIX gui crash
Diffstat (limited to 'gowin/arch.cc')
-rw-r--r-- | gowin/arch.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc index af851467..e6ee8267 100644 --- a/gowin/arch.cc +++ b/gowin/arch.cc @@ -209,6 +209,16 @@ void Arch::addWire(IdString name, IdString type, int x, int y) wi.y = y; wire_ids.push_back(name); + + // Needed to ensure empty tile bel locations + if (int(bels_by_tile.size()) <= x) + bels_by_tile.resize(x + 1); + if (int(bels_by_tile[x].size()) <= y) + bels_by_tile[x].resize(y + 1); + if (int(tileBelDimZ.size()) <= x) + tileBelDimZ.resize(x + 1); + if (int(tileBelDimZ[x].size()) <= y) + tileBelDimZ[x].resize(y + 1); } void Arch::addPip(IdString name, IdString type, IdString srcWire, IdString dstWire, DelayQuad delay, Loc loc) |