11before_script :
2- # paths to local or network installations (the riscv toolchain and
2+ # paths to local or network installations (the riscv toolchain and
33 # verilator are not built in the ci job as in travis)
44 - export QUESTASIM_HOME=/usr/pack/modelsim-10.6b-kgf/questasim/
55 - export QUESTASIM_VERSION=-10.6b
66 - export QUESTASIM_FLAGS=-noautoldlibpath
77 - export CXX=g++-7.2.0 CC=gcc-7.2.0
8- - export RISCV=/usr/ scratch2/larain1 /gitlabci/riscv_install
9- - export VERILATOR_ROOT=/usr/ scratch2/larain1 /gitlabci/verilator-3.924
8+ - export RISCV=/scratch2/gitlabci/riscv_install
9+ - export VERILATOR_ROOT=/scratch2/gitlabci/verilator-3.924
1010 # setup dependent paths
1111 - export PATH=${RISCV}/bin:$VERILATOR_ROOT/bin:${PATH}
1212 - export LIBRARY_PATH=$RISCV/lib
@@ -15,46 +15,195 @@ before_script:
1515 - export CPLUS_INCLUDE_PATH=$RISCV/include:$VERILATOR_ROOT/include:/usr/pack/gcc-7.2.0-af/linux-x64/include
1616 # number of parallel jobs to use for make commands and simulation
1717 - export NUM_JOBS=4
18+ - which java
19+ - java -version
20+ - which git
21+ - git --version
1822 - ci/make-tmp.sh
19- - git submodule update --init --recursive
20-
23+ - git submodule init
24+ - git submodule update --recursive
25+
2126variables :
2227 GIT_SUBMODULE_STRATEGY : recursive
2328
2429stages :
2530 - build
26- - test_std
31+ - standard
32+ - serpent
2733
34+ # ##################################
2835# prepare
2936build :
3037 stage : build
3138 script :
3239 - ci/build-riscv-tests.sh
3340 - ci/get-torture.sh
3441 - make clean
35- - make torture-gen
42+ # this currently does not work with the current runner version...
43+ # - make torture-gen
3644 artifacts :
3745 paths :
38- - tmp
46+ - tmp
47+
48+ # ##################################
49+ # tests with standard cache system
50+
51+ # rv64ui-p-* and rv64ui-v-* tests
52+ asm-quest :
53+ stage : standard
54+ script :
55+ - make -j${NUM_JOBS} run-asm-tests batch-mode=1
56+ dependencies :
57+ - build
58+
59+ amo-quest :
60+ stage : standard
61+ script :
62+ - make -j${NUM_JOBS} run-amo-tests batch-mode=1
63+ dependencies :
64+ - build
65+
66+ bench-quest :
67+ stage : standard
68+ script :
69+ - make -j${NUM_JOBS} run-benchmarks batch-mode=1
70+ dependencies :
71+ - build
72+
73+ # rv64ui-p-* tests
74+ asm1-ver :
75+ stage : standard
76+ script :
77+ - make -j${NUM_JOBS} run-asm-tests1-verilator
78+ dependencies :
79+ - build
80+
81+ # rv64ui-v-* tests
82+ asm2-ver :
83+ stage : standard
84+ script :
85+ - make -j${NUM_JOBS} run-asm-tests2-verilator
86+ dependencies :
87+ - build
88+
89+ # rv64um-*-* tests
90+ mul-ver :
91+ stage : standard
92+ script :
93+ - make -j${NUM_JOBS} run-mul-verilator
94+ dependencies :
95+ - build
96+
97+ # atomics
98+ amo-ver :
99+ stage : standard
100+ script :
101+ - make -j${NUM_JOBS} run-amo-verilator
102+ dependencies :
103+ - build
104+
105+ bench-ver :
106+ stage : standard
107+ script :
108+ - make -j${NUM_JOBS} run-benchmarks-verilator
109+ dependencies :
110+ - build
111+
112+ bench-ver :
113+ stage : standard
114+ script :
115+ - make -j${NUM_JOBS} run-benchmarks-verilator
116+ dependencies :
117+ - build
118+
119+ # torture:
120+ # stage: standard
121+ # script:
122+ # - make torture-rtest batch-mode=1
123+ # - make torture-rtest-verilator
124+ # dependencies:
125+ # - build
126+
127+ serdiv-quest :
128+ stage : standard
129+ script :
130+ - cd tb/tb_serdiv/
131+ - make simc
132+ - " grep 'CI: PASSED' summary.rep"
133+ dependencies :
134+ - build
135+
136+ # ##################################
137+ # tests with serpent cache system
138+
139+ # rv64ui-p-* and rv64ui-v-* tests
140+ s-asm-quest :
141+ stage : serpent
142+ script :
143+ - make -j${NUM_JOBS} run-asm-tests defines=PITON_ARIANE+AXI64_CACHE_PORTS batch-mode=1
144+ dependencies :
145+ - build
39146
40- # rv64ui-p-* and rv64ui-v-* tests
41- run-asm-tests-questa :
42- stage : test_std
147+ s-bench-quest :
148+ stage : serpent
43149 script :
44- - make -j${NUM_JOBS} run-asm-tests
150+ - make -j${NUM_JOBS} run-benchmarks defines=PITON_ARIANE+AXI64_CACHE_PORTS batch-mode=1
45151 dependencies :
46152 - build
47153
48- run-benchmarks-questa :
49- stage : test_std
154+ # rv64ui-p-* tests
155+ s-asm1-ver :
156+ stage : serpent
50157 script :
51- - make -j${NUM_JOBS} run-benchmarks
158+ - make -j${NUM_JOBS} run-asm-tests1-verilator defines=PITON_ARIANE+AXI64_CACHE_PORTS
52159 dependencies :
53- - build
160+ - build
161+
162+ # rv64ui-v-* tests
163+ s-asm2-ver :
164+ stage : serpent
165+ script :
166+ - make -j${NUM_JOBS} run-asm-tests2-verilator defines=PITON_ARIANE+AXI64_CACHE_PORTS
167+ dependencies :
168+ - build
169+
170+ # rv64um-*-* tests
171+ mul-ver :
172+ stage : standard
173+ script :
174+ - make -j${NUM_JOBS} run-mul-verilator defines=PITON_ARIANE+AXI64_CACHE_PORTS
175+ dependencies :
176+ - build
177+
178+ s-bench-ver :
179+ stage : serpent
180+ script :
181+ - make -j${NUM_JOBS} run-benchmarks-verilator defines=PITON_ARIANE+AXI64_CACHE_PORTS
182+ dependencies :
183+ - build
184+
185+ s-icache-quest :
186+ stage : serpent
187+ script :
188+ - cd tb/tb_serpent_icache/
189+ - make simc
190+ - " grep 'CI: PASSED' summary.rep"
54191
55- torture :
56- stage : test_std
192+ s-dcache-quest :
193+ stage : serpent
57194 script :
58- - make torture-rtest
195+ - cd tb/tb_serpent_dcache/
196+ - make simc
197+ - " grep 'CI: PASSED' RD0_summary.rep"
198+ - " grep 'CI: PASSED' RD1_summary.rep"
199+ - " grep 'CI: PASSED' TB_MEM_summary.rep"
59200 dependencies :
60201 - build
202+
203+ # s-torture:
204+ # stage: serpent
205+ # script:
206+ # - make torture-rtest defines=PITON_ARIANE+AXI64_CACHE_PORTS batch-mode=1
207+ # - make torture-rtest-verilator defines=PITON_ARIANE+AXI64_CACHE_PORTS
208+ # dependencies:
209+ # - build
0 commit comments