mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-30 08:20:10 +00:00
Intertask cancellation via database
Task checking via database rated limited to once every 10s. Rename killer.sby to cancelledby.sby and add Makefile for testing.
This commit is contained in:
parent
e7c756a43f
commit
5fc8df43f8
4 changed files with 49 additions and 6 deletions
2
tests/intertask/Makefile
Normal file
2
tests/intertask/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
|||
SUBDIR=intertask
|
||||
include ../make/subdir.mk
|
|
@ -10,28 +10,28 @@ c: a
|
|||
|
||||
[options]
|
||||
mode bmc
|
||||
depth 100
|
||||
depth 10000
|
||||
expect fail,cancelled
|
||||
|
||||
[engines]
|
||||
btor btormc
|
||||
|
||||
[script]
|
||||
a: read -define MAX=7
|
||||
b: read -define MAX=14
|
||||
c: read -define MAX=3
|
||||
a: read -define MAX=9600
|
||||
b: read -define MAX=1267
|
||||
c: read -define MAX=7200
|
||||
read -formal demo.sv
|
||||
prep -top demo
|
||||
|
||||
[file demo.sv]
|
||||
module demo (
|
||||
input clk,
|
||||
output reg [5:0] counter
|
||||
output reg [31:0] counter
|
||||
);
|
||||
initial counter = 0;
|
||||
|
||||
always @(posedge clk) begin
|
||||
if (counter == 15)
|
||||
if (counter[31] == 1'b1)
|
||||
counter <= 0;
|
||||
else
|
||||
counter <= counter + 1;
|
Loading…
Add table
Add a link
Reference in a new issue