mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
extract_reduce: Refactor and fix input signal construction.
Fixes #3047.
This commit is contained in:
parent
a0e9d9fef9
commit
e64456f920
2 changed files with 46 additions and 63 deletions
12
tests/opt/bug3047.ys
Normal file
12
tests/opt/bug3047.ys
Normal file
|
@ -0,0 +1,12 @@
|
|||
read_verilog << EOT
|
||||
|
||||
module test (A, B, C, D, Y);
|
||||
input A, B, C, D;
|
||||
output Y;
|
||||
assign Y = A^B^C^D^A;
|
||||
endmodule
|
||||
|
||||
EOT
|
||||
|
||||
techmap
|
||||
equiv_opt -assert extract_reduce
|
Loading…
Add table
Add a link
Reference in a new issue