mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2737 from YosysHQ/claire/fix2736
Remove duplicates from conns array in JSON front-end, fixes #2736
This commit is contained in:
commit
86a6ac7623
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue