mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Merge pull request #4218 from kivikakk/proc_rom-actionless-switch
proc_rom: don't assert on big actionless switch.
This commit is contained in:
commit
db947e4c71
2 changed files with 28 additions and 0 deletions
|
@ -66,6 +66,11 @@ struct RomWorker
|
|||
}
|
||||
}
|
||||
|
||||
if (lhs.empty()) {
|
||||
log_debug("rejecting switch: lhs empty\n");
|
||||
return;
|
||||
}
|
||||
|
||||
int swsigbits = 0;
|
||||
for (int i = 0; i < GetSize(sw->signal); i++)
|
||||
if (sw->signal[i] != State::S0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue