mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2119 from YosysHQ/mwk/fix-fsm-idstring
fsm_extract: avoid calling log_signal to determine wire name
This commit is contained in:
commit
680913be85
|
@ -394,7 +394,7 @@ static void extract_fsm(RTLIL::Wire *wire)
|
||||||
RTLIL::Cell *cell = module->cells_.at(cellport.first);
|
RTLIL::Cell *cell = module->cells_.at(cellport.first);
|
||||||
RTLIL::SigSpec port_sig = assign_map(cell->getPort(cellport.second));
|
RTLIL::SigSpec port_sig = assign_map(cell->getPort(cellport.second));
|
||||||
RTLIL::SigSpec unconn_sig = port_sig.extract(ctrl_out);
|
RTLIL::SigSpec unconn_sig = port_sig.extract(ctrl_out);
|
||||||
RTLIL::Wire *unconn_wire = module->addWire(stringf("$fsm_unconnect$%s$%d", log_signal(unconn_sig), autoidx++), unconn_sig.size());
|
RTLIL::Wire *unconn_wire = module->addWire(stringf("$fsm_unconnect$%d", autoidx++), unconn_sig.size());
|
||||||
port_sig.replace(unconn_sig, RTLIL::SigSpec(unconn_wire), &cell->connections_[cellport.second]);
|
port_sig.replace(unconn_sig, RTLIL::SigSpec(unconn_wire), &cell->connections_[cellport.second]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue