3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-17 20:55:45 +00:00
yosys/tests/silimate/annotate_unqcoef.ys
2025-04-04 03:21:53 -07:00

22 lines
347 B
Text

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
design -reset
log -pop