3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-06 11:20:27 +00:00

tests: add opt_expr tests

This commit is contained in:
Eddie Hung 2020-04-23 15:58:36 -07:00
parent e7058593f4
commit b84415094c
5 changed files with 365 additions and 0 deletions

21
tests/opt/bug1758.ys Normal file
View file

@ -0,0 +1,21 @@
read_verilog -noopt <<EOT
module gold(input i, output o);
assign o = 1'bx | i;
endmodule
EOT
copy gold coarse
copy gold fine
cd coarse
opt_expr
select -assert-none c:*
cd fine
opt_expr
select -assert-none c:*
cd
miter -equiv -flatten -make_assert -make_outputs coarse fine miter
sat -verify -prove-asserts -show-ports miter
miter -equiv -flatten -make_assert -make_outputs -ignore_gold_x gold coarse miter2
sat -verify -prove-asserts -show-ports -enable_undef miter2