mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +00:00
Renamed RTLIL::{Module,Cell}::connections to connections_
This commit is contained in:
parent
665759fcee
commit
cc4f10883b
62 changed files with 1234 additions and 1213 deletions
|
@ -30,11 +30,11 @@ static void unset_drivers(RTLIL::Design *design, RTLIL::Module *module, SigMap &
|
|||
RTLIL::Wire *dummy_wire = module->addWire(NEW_ID, sig.size());
|
||||
|
||||
for (auto &it : module->cells)
|
||||
for (auto &port : it.second->connections)
|
||||
for (auto &port : it.second->connections_)
|
||||
if (ct.cell_output(it.second->type, port.first))
|
||||
sigmap(port.second).replace(sig, dummy_wire, &port.second);
|
||||
|
||||
for (auto &conn : module->connections)
|
||||
for (auto &conn : module->connections_)
|
||||
sigmap(conn.first).replace(sig, dummy_wire, &conn.first);
|
||||
}
|
||||
|
||||
|
@ -123,7 +123,7 @@ struct ConnectPass : public Pass {
|
|||
|
||||
SigMap sigmap;
|
||||
if (!flag_nomap)
|
||||
for (auto &it : module->connections) {
|
||||
for (auto &it : module->connections_) {
|
||||
std::vector<RTLIL::SigBit> lhs = it.first.to_sigbit_vector();
|
||||
std::vector<RTLIL::SigBit> rhs = it.first.to_sigbit_vector();
|
||||
for (size_t i = 0; i < lhs.size(); i++)
|
||||
|
@ -148,7 +148,7 @@ struct ConnectPass : public Pass {
|
|||
if (!flag_nounset)
|
||||
unset_drivers(design, module, sigmap, sig_lhs);
|
||||
|
||||
module->connections.push_back(RTLIL::SigSig(sig_lhs, sig_rhs));
|
||||
module->connections_.push_back(RTLIL::SigSig(sig_lhs, sig_rhs));
|
||||
}
|
||||
else
|
||||
if (!unset_expr.empty())
|
||||
|
@ -176,7 +176,7 @@ struct ConnectPass : public Pass {
|
|||
if (!RTLIL::SigSpec::parse_sel(sig, design, module, port_expr))
|
||||
log_cmd_error("Failed to parse port expression `%s'.\n", port_expr.c_str());
|
||||
|
||||
module->cells.at(RTLIL::escape_id(port_cell))->connections[RTLIL::escape_id(port_port)] = sigmap(sig);
|
||||
module->cells.at(RTLIL::escape_id(port_cell))->connections_[RTLIL::escape_id(port_port)] = sigmap(sig);
|
||||
}
|
||||
else
|
||||
log_cmd_error("Expected -set, -unset, or -port.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue