mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +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
|
@ -163,7 +163,7 @@ void ILANG_BACKEND::dump_cell(FILE *f, std::string indent, const RTLIL::Cell *ce
|
|||
dump_const(f, it->second);
|
||||
fprintf(f, "\n");
|
||||
}
|
||||
for (auto it = cell->connections_.begin(); it != cell->connections_.end(); it++) {
|
||||
for (auto it = cell->connections().begin(); it != cell->connections().end(); it++) {
|
||||
fprintf(f, "%s connect %s ", indent.c_str(), it->first.c_str());
|
||||
dump_sigspec(f, it->second);
|
||||
fprintf(f, "\n");
|
||||
|
@ -309,7 +309,7 @@ void ILANG_BACKEND::dump_module(FILE *f, std::string indent, const RTLIL::Module
|
|||
}
|
||||
|
||||
bool first_conn_line = true;
|
||||
for (auto it = module->connections_.begin(); it != module->connections_.end(); it++) {
|
||||
for (auto it = module->connections().begin(); it != module->connections().end(); it++) {
|
||||
bool show_conn = !only_selected;
|
||||
if (only_selected) {
|
||||
RTLIL::SigSpec sigs = it->first;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue