mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
opt_expr: refactor simplification of unsigned X<onehot and X>=onehot. NFCI.
This commit is contained in:
parent
9e9846a6ea
commit
4fd458290c
2 changed files with 42 additions and 31 deletions
|
@ -14,4 +14,9 @@ module top(...);
|
|||
output o2_2 = 4'sb0000 <= $signed(a);
|
||||
output o2_3 = $signed(a) < 4'sb0000;
|
||||
output o2_4 = $signed(a) >= 4'sb0000;
|
||||
|
||||
output o3_1 = 4'b0100 > a;
|
||||
output o3_2 = 4'b0100 <= a;
|
||||
output o3_3 = a < 4'b0100;
|
||||
output o3_4 = a >= 4'b0100;
|
||||
endmodule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue