mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +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
|
@ -40,7 +40,7 @@ static void rmunused_module_cells(RTLIL::Module *module, bool verbose)
|
|||
SigSet<RTLIL::Cell*> wire2driver;
|
||||
for (auto &it : module->cells) {
|
||||
RTLIL::Cell *cell = it.second;
|
||||
for (auto &it2 : cell->connections) {
|
||||
for (auto &it2 : cell->connections_) {
|
||||
if (!ct.cell_input(cell->type, it2.first)) {
|
||||
RTLIL::SigSpec sig = it2.second;
|
||||
assign_map.apply(sig);
|
||||
|
@ -70,7 +70,7 @@ static void rmunused_module_cells(RTLIL::Module *module, bool verbose)
|
|||
for (auto cell : queue)
|
||||
unused.erase(cell);
|
||||
for (auto cell : queue) {
|
||||
for (auto &it : cell->connections) {
|
||||
for (auto &it : cell->connections_) {
|
||||
if (!ct.cell_output(cell->type, it.first)) {
|
||||
std::set<RTLIL::Cell*> cell_list;
|
||||
RTLIL::SigSpec sig = it.second;
|
||||
|
@ -158,10 +158,10 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
|
|||
for (auto &it : module->cells) {
|
||||
RTLIL::Cell *cell = it.second;
|
||||
if (ct_reg.cell_known(cell->type))
|
||||
for (auto &it2 : cell->connections)
|
||||
for (auto &it2 : cell->connections_)
|
||||
if (ct_reg.cell_output(cell->type, it2.first))
|
||||
register_signals.add(it2.second);
|
||||
for (auto &it2 : cell->connections)
|
||||
for (auto &it2 : cell->connections_)
|
||||
connected_signals.add(it2.second);
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
|
|||
for (auto &it : module->cells) {
|
||||
RTLIL::Cell *cell = it.second;
|
||||
if (ct_all.cell_known(cell->type))
|
||||
for (auto &it2 : cell->connections)
|
||||
for (auto &it2 : cell->connections_)
|
||||
if (ct_all.cell_output(cell->type, it2.first))
|
||||
direct_sigs.insert(assign_map(it2.second));
|
||||
}
|
||||
|
@ -189,13 +189,13 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
|
|||
}
|
||||
}
|
||||
|
||||
module->connections.clear();
|
||||
module->connections_.clear();
|
||||
|
||||
SigPool used_signals;
|
||||
SigPool used_signals_nodrivers;
|
||||
for (auto &it : module->cells) {
|
||||
RTLIL::Cell *cell = it.second;
|
||||
for (auto &it2 : cell->connections) {
|
||||
for (auto &it2 : cell->connections_) {
|
||||
assign_map.apply(it2.second);
|
||||
used_signals.add(it2.second);
|
||||
if (!ct.cell_output(cell->type, it2.first))
|
||||
|
@ -237,7 +237,7 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
|
|||
if (new_conn.first.size() > 0) {
|
||||
used_signals.add(new_conn.first);
|
||||
used_signals.add(new_conn.second);
|
||||
module->connections.push_back(new_conn);
|
||||
module->connections_.push_back(new_conn);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue