3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2026-06-03 01:37:56 +00:00

tests: Add statusdb test

Ensures that `--statusreset` doesn't break the schema.
This commit is contained in:
Krystine Sherwin 2025-07-08 15:44:02 +12:00
parent 10040ce859
commit b1d9bcbb42
No known key found for this signature in database
3 changed files with 46 additions and 0 deletions

21
tests/statusdb/reset.sv Normal file
View file

@ -0,0 +1,21 @@
module demo (
input clk,
output reg [5:0] counter
);
initial counter = 0;
always @(posedge clk) begin
if (counter == 15)
counter <= 0;
else
counter <= counter + 1;
end
`ifdef FORMAL
always @(posedge clk) begin
assert (1);
assert (counter < 7);
assert (0);
end
`endif
endmodule