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

fixed 321, added reduce ops in share

This commit is contained in:
Can Aknesil 2024-08-17 00:46:19 +02:00
parent ceba889641
commit 3627757c1c
4 changed files with 23 additions and 0 deletions

View file

@ -1 +1,2 @@
temp
*.log

11
tests/share/bug321.ys Normal file
View file

@ -0,0 +1,11 @@
read_verilog <<EOF
module top(a, b, s, y);
input wire [7:0] a;
input wire [7:0] b;
input wire s;
output wire y;
assign y = s ? |a : |b;
endmodule
EOF
share -force

5
tests/share/run-test.sh Executable file → Normal file
View file

@ -36,4 +36,9 @@ if [ -n "$failed_share" ]; then
false
fi
for x in *.ys; do
echo "Running $x.."
../../yosys -ql ${x%.ys}.log $x
done
exit 0