-
Notifications
You must be signed in to change notification settings - Fork 9
/
runt.toml
146 lines (127 loc) · 3.05 KB
/
runt.toml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
ver = "0.4.1"
[[tests]]
name = "check"
paths = ["tests/check/*.fil", "primitives/*.fil"]
cmd = """
./target/debug/filament {} --check
"""
expect_dir = "tests/check/"
[[tests]]
name = "errors"
paths = ["tests/errors/**/*.fil"]
cmd = """
./target/debug/filament {}
"""
[[tests]]
name = "run"
paths = ["tests/run/*.fil"]
cmd = """
fud e -s cocotb.data {}.data --to cocotb-out {} -s filament.flags ' --show-models' -q
"""
# ============= Testing primitive implementations =============
[[tests]]
name = "floating point-random"
paths = ["tests/floating-point/*/harness.fil"]
cmd = """
dir=$(dirname {}) && \
./tests/utils/rand_check.sh $dir
"""
[[tests]]
name = "floating point-edge"
paths = ["tests/floating-point/*/harness.fil"]
timeout = 3600
cmd = """
dir=$(dirname {}) && \
./tests/utils/check.sh $dir edge
"""
[[tests]]
name = "iterative divider-random"
paths = ["tests/iterative-divider/harness.fil"]
timeout = 3600
cmd = """
dir=$(dirname {}) && \
./tests/utils/rand_check.sh $dir
"""
[[tests]]
name = "iterative divider-edge"
paths = ["tests/iterative-divider/harness.fil"]
cmd = """
dir=$(dirname {}) && \
./tests/utils/check.sh $dir edge
"""
[[tests]]
name = "bindings"
paths = ["tests/gen/*/*.toml"]
cmd = """
dir=$(dirname {}) && \
./target/debug/filament $dir.fil --bindings {} --dump-interface
"""
# ============ Larger designs in Filament =====================
# Compile directories within the tests/compile directory. All *.fil files in the
# use the same input and must produce the same output
[[tests]]
name = "systolic array"
paths = ["tests/systolic/*.fil"]
cmd = """
dir=$(dirname {}) && \
fud e -s cocotb.data "$dir/data.json" \
--to cocotb-out {} \
-s filament.flags ' --show-models' -q
"""
# Aetherling evaluation
[[tests]]
name = "aetherling parameteric"
paths = ["apps/aetherling/**/shim.fil"]
cmd = """
fud e -s cocotb.data "apps/aetherling/data.json" --to cocotb-out {} -q |\
jq '[ .O_10, .O_11, .O_12, .O_13, .O_14, .O_15 ] | map(.["0"]) | flatten'
"""
expect_dir = "apps/aetherling/"
# frisc
[[tests]]
name = "frisc tests"
paths = ["apps/frisc/test/*.fil"]
cmd = """
fud e -s cocotb.data {}.data --to cocotb-out {} -q
"""
# fft
[[tests]]
name = "fft-random"
paths = ["apps/fft/versions/*/fft.fil"]
expect_dir = "apps/fft/test/"
cmd = """
dir=$(dirname {}) && \
apps/fft/test/scripts/random.sh $dir
"""
[[tests]]
name = "fft-edge"
paths = ["apps/fft/versions/*/fft.fil"]
expect_dir = "apps/fft/test/"
cmd = """
dir=$(dirname {}) && \
apps/fft/test/scripts/edge.sh $dir
"""
# blas
[[tests]]
name = "blas"
paths = ["apps/blas/*/test.fil"]
expect_dir = "apps/blas/"
cmd = """
python apps/blas/util.py -r -n 5 -w 4 -k {} && \
dir=$(dirname {}) && \
rm $dir/test.expect $dir/test.fil.data $dir/test.fil.out
"""
# ============== Examples in the documentation ============
[[tests]]
name = "examples"
paths = ["examples/*.fil"]
cmd = """
./target/debug/filament {} --check
"""
[[tests]]
name = "run examples"
paths = ["examples/tut-seq.fil", "examples/tut-pipe.fil"]
expect_dir = "examples/run/"
cmd = """
fud e -s cocotb.data examples/data.json --to cocotb-out {} -q
"""