forked from pulp-platform/common_cells
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
64 lines (56 loc) · 2.15 KB
/
.gitlab-ci.yml
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
variables:
VSIM: vsim-10.6b -64
VLIB: vlib-10.6b
VMAP: vmap-10.6b
VCOM: vcom-10.6b -64
VLOG: vlog-10.6b -64
VOPT: vopt-10.6b -64
before_script:
- export PATH="~fschuiki/.cargo/bin/":$PATH
- |
echo 'plugins:' > Bender.local
echo ' bender-vsim: { git: "git@iis-git.ee.ethz.ch:fschuiki/bender-vsim.git", rev: master }' >> Bender.local
stages:
- build
- test
compile:
stage: build
script:
- bender vsim
test_fifo:
stage: test
script:
# workaround to prevent simulation from failing due to assertions
- bender vsim -t test --vlog-flag="+define+VERILATOR"
- cd build
- $VSIM -c work.fifo_tb -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]" -GDEPTH=0
- $VSIM -c work.fifo_tb -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]" -GDEPTH=13
- $VSIM -c work.fifo_tb -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]" -GDEPTH=32 -GFALL_THROUGH=1
test_stream_register:
stage: test
script:
# workaround to prevent simulation from failing due to assertions
- bender vsim -t test --vlog-flag="+define+VERILATOR"
- cd build
- $VSIM -c work.stream_register_tb -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]"
test_cdc_2phase:
stage: test
script:
- bender vsim -t test
- cd build
- $VOPT cdc_2phase_tb -o cdc_2phase_tb_opt -GUNTIL=1000000
- $VSIM -c cdc_2phase_tb_opt -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]"
test_cdc_fifo:
stage: test
script:
- bender vsim -t test
- cd build
- for g in 0 1; do for i in 1 2 3 4 5; do $VOPT cdc_fifo_tb -o cdc_fifo_tb_depth${i}_gray${g} -GDEPTH=$i -GGRAY=$g; done; done
- for g in 0 1; do for i in 1 2 3 4 5; do $VSIM -c cdc_fifo_tb_depth${i}_gray${g} -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]"; done; done
test_graycode:
stage: test
script:
- bender vsim -t test
- cd build
- for i in 1 2 3 4 8 16; do $VOPT graycode_tb -o graycode_tb_$i -GN=$i; done
- for i in 1 2 3 4 8 16; do $VSIM -c graycode_tb_$i -do "run -a; quit -code [coverage attribute -name TESTSTATUS -concise]"; done