3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

opt_expr: Fix handling of $_XNOR_ cells with A = B.

Fixes #2311.
This commit is contained in:
Marcelina Kościelnicka 2020-07-29 10:00:01 +02:00
parent 773b056ffb
commit dc18bf1969
2 changed files with 15 additions and 1 deletions

14
tests/opt/bug2311.ys Normal file
View file

@ -0,0 +1,14 @@
read_verilog -icells << EOT
module top(...);
input A;
output Y;
$_XNOR_ x (.A(A), .B(A), .Y(Y));
endmodule
EOT
equiv_opt -assert opt_expr