mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-14 23:05:28 +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
|
@ -74,7 +74,7 @@ struct ConnwrappersWorker
|
|||
if (!decl_celltypes.count(cell->type))
|
||||
continue;
|
||||
|
||||
for (auto &conn : cell->connections_)
|
||||
for (auto &conn : cell->connections())
|
||||
{
|
||||
std::pair<std::string, std::string> key(cell->type, conn.first);
|
||||
|
||||
|
@ -109,7 +109,7 @@ struct ConnwrappersWorker
|
|||
if (!design->selected(module, cell))
|
||||
continue;
|
||||
|
||||
for (auto &conn : cell->connections_)
|
||||
for (auto &conn : cell->connections())
|
||||
{
|
||||
std::vector<RTLIL::SigBit> sigbits = sigmap(conn.second).to_sigbit_vector();
|
||||
RTLIL::SigSpec old_sig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue