3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-09-02 09:40:43 +00:00
sby/tests/intertask/cancelledby.sby
Krystine Sherwin 360f1b03a3
tests/intertask: Use bash script
Somewhat hacky use of the automatic task collection splitting tasks into separate make targets.
2025-07-09 10:04:37 +12:00

47 lines
597 B
Text

[tasks]
c
b
a
[cancelledby]
a: b
b: c
c: a
[options]
mode bmc
depth 20
a: expect pass,cancelled
b: expect fail,cancelled
c: expect fail,cancelled
[engines]
btor btormc
[script]
a: read -define MAX=32
b: read -define MAX=12
c: read -define MAX=3
read -formal demo.sv
prep -top demo
[file demo.sv]
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 (counter < `MAX);
end
`endif
endmodule