Fixed proc_mux performance bug

This commit is contained in:
Clifford Wolf 2016-04-25 10:43:04 +02:00
parent d086224a39
commit 93e107e455
1 changed files with 3 additions and 0 deletions

View File

@ -250,6 +250,9 @@ void append_pmux(RTLIL::Module *mod, const RTLIL::SigSpec &signal, const std::ve
log_assert(last_mux_cell != NULL);
log_assert(when_signal.size() == last_mux_cell->getPort("\\A").size());
if (when_signal == last_mux_cell->getPort("\\A"))
return;
RTLIL::SigSpec ctrl_sig = gen_cmp(mod, signal, compare, sw);
log_assert(ctrl_sig.size() == 1);
last_mux_cell->type = "$pmux";