diff options
author | David Shah <dave@ds0.me> | 2019-08-08 08:36:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 08:36:37 +0100 |
commit | e0a114fcb3389108bd5821e442b8deb78b532da7 (patch) | |
tree | cbe279b2a938767cbbc15f57d6ff9d940b12dd55 /json/jsonparse.cc | |
parent | 90364fc3fad72f8c23b7200160f1acc0343c94d9 (diff) | |
parent | bb0b6e85ce713012cd90cd18882c7873888648a1 (diff) | |
download | nextpnr-e0a114fcb3389108bd5821e442b8deb78b532da7.tar.gz nextpnr-e0a114fcb3389108bd5821e442b8deb78b532da7.tar.bz2 nextpnr-e0a114fcb3389108bd5821e442b8deb78b532da7.zip |
Merge pull request #308 from YosysHQ/ecp5_ooc
Add out-of-context mode to ECP5 architecture
Diffstat (limited to 'json/jsonparse.cc')
-rw-r--r-- | json/jsonparse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json/jsonparse.cc b/json/jsonparse.cc index b3bb491b..ad21daf2 100644 --- a/json/jsonparse.cc +++ b/json/jsonparse.cc @@ -733,10 +733,10 @@ static void insert_iobuf(Context *ctx, NetInfo *net, PortType type, const string } PortInfo pinfo; - pinfo.name = net->name; + pinfo.name = ctx->id(name); pinfo.net = net; pinfo.type = type; - ctx->ports[net->name] = pinfo; + ctx->ports[pinfo.name] = pinfo; } void json_import_toplevel_port(Context *ctx, const string &modname, const std::vector<IdString> &netnames, |