forked from pulp-platform/FlooNoC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
84 lines (76 loc) · 1.6 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright 2022 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
# Author: Michael Rogenmoser <michaero@iis.ee.ethz.ch>
variables:
VSIM: questa-2023.4 vsim
BENDER: bender
stages:
- init
- build
- run
collect-bender-sources:
stage: init
script:
- $BENDER checkout
artifacts:
paths:
- .bender/
- Bender.lock
compile-vsim:
stage: build
script:
- make compile-sim | tee compile.log 2>&1
- '! grep "Error: " compile.log'
needs:
- collect-bender-sources
artifacts:
paths:
- scripts/
- work/
- modelsim.ini
run-vsim:
stage: run
script:
- make run-sim-batch | tee vsim.log 2>&1
- 'grep "Errors: 0," vsim.log'
artifacts:
paths:
- vsim.log
parallel:
matrix:
- VSIM_TB_DUT:
- tb_floo_router
- tb_floo_axi_chimney
- tb_floo_narrow_wide_chimney
- tb_floo_rob
needs:
- collect-bender-sources
- compile-vsim
rules:
- if: '$CI_COMMIT_REF_NAME =~ /noci$/'
when: manual
- when: always
run-traffic:
stage: run
variables:
VSIM_TB_DUT: tb_floo_dma_mesh
JOB_NAME: mesh
parallel:
matrix:
- TRAFFIC_TYPE: [random, hbm, onehop]
TRAFFIC_RW: [read, write]
needs:
- collect-bender-sources
- compile-vsim
script:
- make jobs
- make run-sim-batch | tee vsim.log 2>&1
- 'grep "Errors: 0," vsim.log'
morty:
stage: build
script:
- $BENDER sources -f > source_list.txt
- morty -f source_list.txt
needs:
- collect-bender-sources