forked from pulp-platform/ITA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
68 lines (61 loc) · 1.37 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
# Copyright 2023 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- test
- sim
.setup_test:
script:
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
format_python:
stage: test
script:
- !reference [.setup_test, script]
- pip install yapf
- yapf -rpd .
generate_testvectors:
stage: test
script:
- !reference [.setup_test, script]
- python testGenerator.py -H 1 -S 64 -E 64 -P 64
- python testGenerator.py -H 1 -S 128 -E 192 -P 256
artifacts:
paths:
- simvectors
expire_in: 1 day
run_sim:
stage: sim
needs:
- generate_testvectors
parallel:
matrix:
- S: 64
E: 64
P: 64
- S: 128
E: 192
P: 256
script:
- make bender
- make sim VSIM_FLAGS=-c s=$S e=$E p=$P bias=1
- ./modelsim/return_status.sh modelsim/build/transcript $S $E ita_tb
run_hwpe_sim:
stage: sim
needs:
- generate_testvectors
parallel:
matrix:
- S: 64
E: 64
P: 64
- S: 128
E: 192
P: 256
script:
- make bender
- make sim VSIM_FLAGS=-c DEBUG=OFF target=sim_ita_hwpe_tb s=$S e=$E p=$P bias=1
- ./modelsim/return_status.sh modelsim/build/transcript $S $E hwpe_tb