mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 10:20:24 +00:00
Changed users of cell->connections_ to the new API (sed command)
git grep -l 'connections_' | xargs sed -i -r -e ' s/(->|\.)connections_\["([^"]*)"\] = (.*);/\1set("\2", \3);/g; s/(->|\.)connections_\["([^"]*)"\]/\1get("\2")/g; s/(->|\.)connections_.at\("([^"]*)"\)/\1get("\2")/g; s/(->|\.)connections_.push_back/\1connect/g; s/(->|\.)connections_/\1connections()/g;'
This commit is contained in:
parent
cd6574ecf6
commit
b7dda72302
61 changed files with 1201 additions and 1201 deletions
|
@ -49,7 +49,7 @@ struct ScatterPass : public Pass {
|
|||
continue;
|
||||
|
||||
for (auto &c : mod_it.second->cells)
|
||||
for (auto &p : c.second->connections_)
|
||||
for (auto &p : c.second->connections())
|
||||
{
|
||||
RTLIL::Wire *wire = new RTLIL::Wire;
|
||||
wire->name = NEW_ID;
|
||||
|
@ -58,10 +58,10 @@ struct ScatterPass : public Pass {
|
|||
|
||||
if (ct.cell_output(c.second->type, p.first)) {
|
||||
RTLIL::SigSig sigsig(p.second, wire);
|
||||
mod_it.second->connections_.push_back(sigsig);
|
||||
mod_it.second->connect(sigsig);
|
||||
} else {
|
||||
RTLIL::SigSig sigsig(wire, p.second);
|
||||
mod_it.second->connections_.push_back(sigsig);
|
||||
mod_it.second->connect(sigsig);
|
||||
}
|
||||
|
||||
p.second = wire;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue