3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-25 00:22:34 +00:00

Add lut2bmux, annotate_unqcoef, and seed tests

This commit is contained in:
Akash Levy 2025-03-31 05:55:54 -07:00
parent 3f00e57076
commit f488b0e74c
4 changed files with 308 additions and 0 deletions

View file

@ -0,0 +1,24 @@
log -header "Simple reduce_or annotation"
log -push
design -reset
read_verilog <<EOF
module top (
input wire [3:0] a,
output wire [1:0] x
);
assign x[0] = |a[2:0];
assign x[1] = |a;
endmodule
EOF
check -assert
# Annotate uniqueness coefficients
annotate_unqcoef
# Check uniqueness coefficients are correct
# TODO
write_verilog test.v
design -reset
log -pop