blob: f4a01edbcc9d0c9c06d8278e2320f79699706d26 (
plain)
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
|
#
# Copyright 2021 Ettus Research, a National Instruments Brand
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#
# Description:
#
# This pipeline is used to run all the testbenches using ModelSim.
#
trigger:
- none
pr:
branches:
include:
- master
paths:
include:
- fpga/usrp3/lib
- fpga/usrp3/tools
- fpga/usrp3/top
- fpga/usrp3/sim
- fpga/.ci
resources:
repositories:
- repository: hwtools
type: git
ref: main
name: DevCentral/hwtools
name:
jobs:
- job:
displayName: "ModelSim Simulation"
timeoutInMinutes: 360
pool:
name: Hardware
steps:
- checkout: self
clean: true
persistCredentials: true
- checkout: hwtools
clean: true
path: s/hwtools/head
persistCredentials: true
- bash: |
set -e
echo "---- Set environment variables ----"
export path_hwtools=$(Pipeline.Workspace)/s/hwtools/head/setup
export PATH=$path_hwtools:$PATH
echo "---- Run hwsetup ----"
# This script sets the XILINX_VIVADO, MODELSIM, and LIB_BASE_PATH
# variables based on the agent's configuration so we can find the EDA
# tools.
pushd ../.ci/hwtools
source hwsetup.sh
popd
echo "---- Run setupenv ----"
export MSIM_VIV_COMPLIBDIR=$LIB_BASE_PATH/vivado/2019.1.1/modelsim_SE-64_2020
source ./top/x300/setupenv.sh --vivado-path $(dirname $XILINX_VIVADO) --modelsim-path $(dirname $MODELSIM)
echo "---- Run testbenches ----"
pushd ./tools/utils
python3 ./run_testbenches.py --logged --simulator modelsim --excludes=modelsim.excludes -j2 run
popd
workingDirectory: uhddev/fpga/usrp3
displayName: "Run Testbenches"
|