3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-25 06:06:02 +00:00
sby/tests/statusdb/mixed.v
Krystine Sherwin 911ae02ee5
Test property statuses for cover_assert
Cover properties shouldn't be marked fail when the test failed early due to an assertion.
This should fail without other changes.
2025-07-05 12:40:57 +12:00

16 lines
346 B
Verilog

module test (input CP, CN, input A, B, output reg XP, XN);
reg [7:0] counter = 0;
always @* begin
assume (A || B);
assume (!A || !B);
assert (A == B);
cover (counter == 3 && A);
cover (counter == 3 && B);
end
always @(posedge CP)
counter <= counter + 1;
always @(posedge CP)
XP <= A;
always @(negedge CN)
XN <= B;
endmodule