mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
proc_clean: only consider fully-defined switch operands too.
This commit is contained in:
parent
bf84861fc2
commit
860e3e4056
2 changed files with 18 additions and 3 deletions
|
@ -31,7 +31,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did_something, int &count, int max_depth)
|
||||
{
|
||||
if (sw->signal.size() > 0 && sw->signal.is_fully_const())
|
||||
if (sw->signal.size() > 0 && sw->signal.is_fully_def())
|
||||
{
|
||||
int found_matching_case_idx = -1;
|
||||
for (int i = 0; i < int(sw->cases.size()) && found_matching_case_idx < 0; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue