mirror of https://github.com/YosysHQ/yosys.git
tests/opt: Add extra alumacc test
Checks equivalence when folding an `$lt` (or equivalently a `$gt`) into a `$sub`. Currently failing, fix incoming.
This commit is contained in:
parent
9bc23d383f
commit
b49f321923
|
|
@ -31,3 +31,15 @@ proc
|
||||||
equiv_opt -assert alumacc
|
equiv_opt -assert alumacc
|
||||||
alumacc
|
alumacc
|
||||||
select -assert-count 1 t:$alu
|
select -assert-count 1 t:$alu
|
||||||
|
|
||||||
|
design -reset
|
||||||
|
read_verilog << EOT
|
||||||
|
module top(input signed a, b, output x, output [1:0] y);
|
||||||
|
assign y = $unsigned(a) - $unsigned(b);
|
||||||
|
assign x = a > b;
|
||||||
|
endmodule
|
||||||
|
EOT
|
||||||
|
hierarchy
|
||||||
|
wreduce
|
||||||
|
equiv_opt -assert alumacc
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue