mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 12:23:39 +00:00
RIP $safe_pmux
This commit is contained in:
parent
28cf48e31f
commit
13f2f36884
16 changed files with 21 additions and 98 deletions
|
@ -104,7 +104,7 @@ struct ConstEval
|
|||
if (cell->hasPort("\\B"))
|
||||
sig_b = cell->getPort("\\B");
|
||||
|
||||
if (cell->type == "$mux" || cell->type == "$pmux" || cell->type == "$safe_pmux" || cell->type == "$_MUX_")
|
||||
if (cell->type == "$mux" || cell->type == "$pmux" || cell->type == "$_MUX_")
|
||||
{
|
||||
std::vector<RTLIL::SigSpec> y_candidates;
|
||||
int count_maybe_set_s_bits = 0;
|
||||
|
@ -125,10 +125,7 @@ struct ConstEval
|
|||
count_set_s_bits++;
|
||||
}
|
||||
|
||||
if (cell->type == "$safe_pmux" && count_set_s_bits > 1)
|
||||
y_candidates.clear();
|
||||
|
||||
if ((cell->type == "$safe_pmux" && count_maybe_set_s_bits > 1) || count_set_s_bits == 0)
|
||||
if (count_set_s_bits == 0)
|
||||
y_candidates.push_back(sig_a);
|
||||
|
||||
std::vector<RTLIL::Const> y_values;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue