3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-08 10:25:19 +00:00

Merge pull request #2737 from YosysHQ/claire/fix2736

Remove duplicates from conns array in JSON front-end, fixes #2736
This commit is contained in:
Claire Xen 2021-04-26 17:54:30 +02:00 committed by GitHub
commit 86a6ac7623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -585,6 +585,10 @@ void json_import(Design *design, string &modname, JsonNode *node)
module->memories[mem->name] = mem;
}
}
// remove duplicates from connections array
pool<RTLIL::SigSig> unique_connections(module->connections_.begin(), module->connections_.end());
module->connections_ = std::vector<RTLIL::SigSig>(unique_connections.begin(), unique_connections.end());
}
struct JsonFrontend : public Frontend {