-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
61 lines (55 loc) · 1 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
load(
"@rules_symbiyosys//symbiyosys:defs.bzl",
"symbiyosys_test",
"symbiyosys_trace",
)
load("@rules_verilog//verilog:defs.bzl", "verilog_module")
verilog_module(
name = "counter_top",
top = "counter_top",
srcs = [
"counter_top.sv",
],
deps = [":counter"],
)
verilog_module(
name = "counter",
top = "counter",
srcs = ["counter.sv"],
)
symbiyosys_test(
name = "counter_pass",
module = ":counter_top",
params = {
"MAX_VAL": "3",
},
modes = [
"bmc",
"prove",
],
depth = 20,
engine = "smtbmc",
)
symbiyosys_test(
name = "counter_fail",
module = ":counter_top",
params = {
"MAX_VAL": "15",
},
modes = [
"bmc",
"prove",
],
depth = 20,
engine = "smtbmc",
)
symbiyosys_trace(
name = "counter_pass_trace",
test = ":counter_pass",
testonly = True,
)
symbiyosys_trace(
name = "counter_fail_trace",
test = ":counter_fail",
testonly = True,
)