Skip to content

Commit

Permalink
fix proc, reduce warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Jun 21, 2024
1 parent 1be8f80 commit 66c6293
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion passes/cmds/glift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ struct GliftWorker {
//recurse to GLIFT model the child module. However, we need to augment the ports list
//with taint signals and connect the new ports to the corresponding taint signals.
RTLIL::Module *cell_module_def = module->design->module(cell->type);
auto orig_ports = cell->connections();
auto orig_ports = cell->connections().as_dict();
log("Adding cell %s\n", cell_module_def->name.c_str());
for (auto &&it : orig_ports) {
RTLIL::SigSpec port = it.second;
Expand Down
2 changes: 1 addition & 1 deletion passes/proc/proc_mux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ RTLIL::SigSpec gen_mux(RTLIL::Module *mod, const RTLIL::SigSpec &signal, const s
return RTLIL::SigSpec(result_wire);
}

void append_pmux(RTLIL::Module *mod, const RTLIL::SigSpec &signal, const std::vector<RTLIL::SigSpec> &compare, RTLIL::SigSpec when_signal, RTLIL::Cell *last_mux_cell, RTLIL::SwitchRule *sw, RTLIL::CaseRule *cs, bool ifxmode)
void append_pmux(RTLIL::Module *mod, const RTLIL::SigSpec &signal, const std::vector<RTLIL::SigSpec> &compare, RTLIL::SigSpec when_signal, RTLIL::Cell *&last_mux_cell, RTLIL::SwitchRule *sw, RTLIL::CaseRule *cs, bool ifxmode)
{
log_assert(last_mux_cell != NULL);
log_assert(when_signal.size() == last_mux_cell->getPort(ID::A).size());
Expand Down
2 changes: 1 addition & 1 deletion passes/tests/test_cell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static void create_gold_module(RTLIL::Design *design, RTLIL::IdString cell_type,

if (constmode)
{
auto conn_list = cell->connections();
auto conn_list = cell->connections().as_dict();
for (auto conn : conn_list)
{
RTLIL::SigSpec sig = conn.second;
Expand Down

0 comments on commit 66c6293

Please sign in to comment.