mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-24 08:24:35 +00:00
The idea behind this simplification is that a N-bit signal X being compared with an M-bit constant where M>N and the constant has Nth or higher bit set, it either always succeeds or always fails. However, the existing implementation only worked with one-hot signals for some reason. It also printed incorrect messages. This commit adjusts the simplification to have as much power as possible, and fixes other bugs. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| opt_expr_cmp.v | ||
| opt_expr_cmp.ys | ||
| opt_lut.v | ||
| opt_lut.ys | ||
| opt_lut_elim.il | ||
| opt_lut_elim.ys | ||
| opt_lut_port.il | ||
| opt_lut_port.ys | ||
| run-test.sh | ||