3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-11 00:23:26 +00:00
This commit is contained in:
Emil J. Tywoniak 2024-06-13 21:37:22 +02:00
parent 866b7a7121
commit 4c9f68216a
8 changed files with 10 additions and 10 deletions

View file

@ -345,7 +345,7 @@ void FfMergeHelper::set(FfInitVals *initvals_, RTLIL::Module *module_)
for (int i = 0; i < GetSize(q); i++) for (int i = 0; i < GetSize(q); i++)
dff_driver[q[i]] = std::make_pair(cell, i); dff_driver[q[i]] = std::make_pair(cell, i);
} }
for (auto &&conn : cell->connections_) for (auto conn : cell->connections_)
if (!cell->known() || cell->input(conn.first)) if (!cell->known() || cell->input(conn.first))
for (auto bit : (*sigmap)(conn.second)) for (auto bit : (*sigmap)(conn.second))
sigbit_users_count[bit]++; sigbit_users_count[bit]++;

View file

@ -1090,7 +1090,7 @@ namespace {
for (auto &&para : cell->parameters) for (auto &&para : cell->parameters)
if (expected_params.count(para.first) == 0) if (expected_params.count(para.first) == 0)
error(__LINE__); error(__LINE__);
for (auto &&conn : cell->connections_) for (auto conn : cell->connections_)
if (expected_ports.count(conn.first) == 0) if (expected_ports.count(conn.first) == 0)
error(__LINE__); error(__LINE__);

View file

@ -1691,7 +1691,7 @@ public:
return parent->getParam(name); return parent->getParam(name);
} }
void sort() {} void sort() {}
void reserve() {} void reserve(int n) { (void)n; }
// Watch out! This is different semantics than what dict has! // Watch out! This is different semantics than what dict has!
// but we rely on RTLIL::Cell always being constructed correctly // but we rely on RTLIL::Cell always being constructed correctly
// since its layout is fixed as defined by InternalOldCellChecker // since its layout is fixed as defined by InternalOldCellChecker
@ -1903,7 +1903,7 @@ public:
return parent->getPort(name); return parent->getPort(name);
} }
void sort() {} void sort() {}
void reserve() {} void reserve(int n) { (void)n; }
// Watch out! This is different semantics than what dict has! // Watch out! This is different semantics than what dict has!
// but we rely on RTLIL::Cell always being constructed correctly // but we rely on RTLIL::Cell always being constructed correctly
// since its layout is fixed as defined by InternalOldCellChecker // since its layout is fixed as defined by InternalOldCellChecker

View file

@ -105,7 +105,7 @@ struct ConnwrappersWorker
for (auto cell : module->selected_cells()) for (auto cell : module->selected_cells())
{ {
for (auto &&conn : cell->connections_) for (auto conn : cell->connections_)
{ {
std::vector<RTLIL::SigBit> sigbits = sigmap(conn.second).to_sigbit_vector(); std::vector<RTLIL::SigBit> sigbits = sigmap(conn.second).to_sigbit_vector();
RTLIL::SigSpec old_sig; RTLIL::SigSpec old_sig;

View file

@ -188,7 +188,7 @@ struct SpliceWorker
for (auto cell : mod_cells) { for (auto cell : mod_cells) {
if (!sel_by_wire && !design->selected(module, cell)) if (!sel_by_wire && !design->selected(module, cell))
continue; continue;
for (auto &&conn : cell->connections_) for (auto conn : cell->connections_)
if (ct.cell_input(cell->type, conn.first)) { if (ct.cell_input(cell->type, conn.first)) {
if (ports.size() > 0 && !ports.count(conn.first)) if (ports.size() > 0 && !ports.count(conn.first))
continue; continue;

View file

@ -575,7 +575,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
RTLIL::Module *mod = design->module(cell->type); RTLIL::Module *mod = design->module(cell->type);
for (auto &&conn : cell->connections_) { for (auto conn : cell->connections_) {
int conn_size = conn.second.size(); int conn_size = conn.second.size();
RTLIL::IdString portname = conn.first; RTLIL::IdString portname = conn.first;
if (portname.begins_with("$")) { if (portname.begins_with("$")) {

View file

@ -361,7 +361,7 @@ bool rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool verbos
// gather the usage information for cells // gather the usage information for cells
for (auto &it : module->cells_) { for (auto &it : module->cells_) {
RTLIL::Cell *cell = it.second; RTLIL::Cell *cell = it.second;
for (auto &it2 : cell->connections_) { for (auto it2 : cell->connections_) {
assign_map.apply(it2.second); // modify the cell connection in place assign_map.apply(it2.second); // modify the cell connection in place
raw_used_signals.add(it2.second); raw_used_signals.add(it2.second);
used_signals.add(it2.second); used_signals.add(it2.second);

View file

@ -498,7 +498,7 @@ struct ExposePass : public Pass {
for (auto cell : module->cells()) { for (auto cell : module->cells()) {
if (!ct.cell_known(cell->type)) if (!ct.cell_known(cell->type))
continue; continue;
for (auto &&conn : cell->connections_) for (auto conn : cell->connections_)
if (ct.cell_output(cell->type, conn.first)) if (ct.cell_output(cell->type, conn.first))
conn.second = out_to_in_map(sigmap(conn.second)); conn.second = out_to_in_map(sigmap(conn.second));
} }
@ -519,7 +519,7 @@ struct ExposePass : public Pass {
for (auto cell : module->cells()) { for (auto cell : module->cells()) {
if (!ct.cell_known(cell->type)) if (!ct.cell_known(cell->type))
continue; continue;
for (auto &&conn : cell->connections_) for (auto conn : cell->connections_)
if (ct.cell_input(cell->type, conn.first)) if (ct.cell_input(cell->type, conn.first))
conn.second = out_to_in_map(sigmap(conn.second)); conn.second = out_to_in_map(sigmap(conn.second));
} }