Skip to content

Commit

Permalink
check: Add coarse-grain false positive test
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Feb 5, 2024
1 parent 95418de commit e01fbef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/various/check.ys
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
design -reset
read_verilog <<EOF
module top(input clk, input a, input b, output [9:0] x);
wire [9:0] ripple;
reg [9:0] prev_ripple = 9'b0;

always @(posedge clk) prev_ripple <= ripple;
assign ripple = {ripple[8:0], a} ^ prev_ripple; // only cyclic at the coarse-grain level
assign x = ripple[9] + b;
endmodule
EOF
check -assert

0 comments on commit e01fbef

Please sign in to comment.