From: Alberto Gonzalez Date: Mon, 13 Apr 2020 19:37:01 +0000 (+0000) Subject: Replace `std::map` with `dict`. X-Git-Tag: working-ls180~624^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff8be2364e9d9aecb084f7fff07a2538b5e6d02e;p=yosys.git Replace `std::map` with `dict`. Co-Authored-By: Eddie Hung --- diff --git a/passes/cmds/scatter.cc b/passes/cmds/scatter.cc index cd1b3286f..a5ef95f02 100644 --- a/passes/cmds/scatter.cc +++ b/passes/cmds/scatter.cc @@ -49,9 +49,9 @@ struct ScatterPass : public Pass { for (auto module : design->selected_modules()) { for (auto cell : module->cells()) { - std::map> new_connections; + dict new_connections; for (auto conn : cell->connections()) - new_connections.emplace(conn.first, std::make_pair(conn.second, module->addWire(NEW_ID, conn.second.size()))); + new_connections.emplace(conn.first, RTLIL::SigSig(conn.second, module->addWire(NEW_ID, GetSize(conn.second)))); for (auto &it : new_connections) { if (ct.cell_output(cell->type, it.first)) module->connect(RTLIL::SigSig(it.second.first, it.second.second));