diff options
author | myrtle <gatecat@ds0.me> | 2022-06-07 13:09:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 13:09:09 +0100 |
commit | 2da7caf6573d857e72388003982043d743bc9438 (patch) | |
tree | 296f800d4edc89199cad8c834f39fe889b19b725 /gowin/pack.cc | |
parent | 997af6d7202b08c457c56db958c5e39605e74295 (diff) | |
parent | db696af2fe53ab4dc341a09303bb6cd371d76519 (diff) | |
download | nextpnr-2da7caf6573d857e72388003982043d743bc9438.tar.gz nextpnr-2da7caf6573d857e72388003982043d743bc9438.tar.bz2 nextpnr-2da7caf6573d857e72388003982043d743bc9438.zip |
Merge pull request #993 from yrabbit/lw-wip-1
gowin: Add support for long wires
Diffstat (limited to 'gowin/pack.cc')
-rw-r--r-- | gowin/pack.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gowin/pack.cc b/gowin/pack.cc index 4adfec1a..83820142 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -947,9 +947,11 @@ static void pack_io(Context *ctx) if (constr_bel != ci->attrs.end()) { constr_bel_name = constr_bel->second.as_string(); } - constr_bel = iob->attrs.find(id_BEL); - if (constr_bel != iob->attrs.end()) { - constr_bel_name = constr_bel->second.as_string(); + if (iob != nullptr) { + constr_bel = iob->attrs.find(id_BEL); + if (constr_bel != iob->attrs.end()) { + constr_bel_name = constr_bel->second.as_string(); + } } if (!constr_bel_name.empty()) { BelId constr_bel = ctx->getBelByNameStr(constr_bel_name); |