mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 14:53:42 +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
|
@ -321,7 +321,7 @@ struct SatHelper
|
|||
if (design->selected(module, c.second)) {
|
||||
// log("Import cell: %s\n", RTLIL::id2cstr(c.first));
|
||||
if (satgen.importCell(c.second, timestep)) {
|
||||
for (auto &p : c.second->connections_)
|
||||
for (auto &p : c.second->connections())
|
||||
if (ct.cell_output(c.second->type, p.first))
|
||||
show_drivers.insert(sigmap(p.second), c.second);
|
||||
import_cell_counter++;
|
||||
|
@ -505,7 +505,7 @@ struct SatHelper
|
|||
final_signals.add(sig);
|
||||
} else {
|
||||
for (auto &d : drivers)
|
||||
for (auto &p : d->connections_) {
|
||||
for (auto &p : d->connections()) {
|
||||
if (d->type == "$dff" && p.first == "\\CLK")
|
||||
continue;
|
||||
if (d->type.substr(0, 6) == "$_DFF_" && p.first == "\\C")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue