diff options
-rw-r--r-- | frontends/json/jsonparse.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/json/jsonparse.cc b/frontends/json/jsonparse.cc index d897ac20b..cbfa038a1 100644 --- a/frontends/json/jsonparse.cc +++ b/frontends/json/jsonparse.cc @@ -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 { |