aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/.ci/templates/job-run-testbenches.yml
blob: 6f6ef142baf2ce9c04efe412896071a2b294f17f (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
#
# Copyright 2022 Ettus Research, a National Instruments Brand
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#
# Description:
#
#   This template is used to run all the testbenches using ModelSim.
#


jobs:
- job:
  displayName: "ModelSim Simulation"
  timeoutInMinutes: 360
  pool:
    name: Hardware
  variables:
  - group: sdr-pipeline-vars
  steps:
    - checkout: self
      clean: true
      persistCredentials: true

    - checkout: hwtools
      clean: true
      path: s/hwtools/head
      persistCredentials: true

    - bash: |
        source $(Build.SourcesDirectory)/uhddev/fpga/.ci/scripts/run_setup.sh ./top/x300

        echo "---- Run testbenches ----"
        pushd ./tools/utils
        python3 ./run_testbenches.py --logged --simulator modelsim --excludes=modelsim.excludes -j2 run
        popd
      workingDirectory: uhddev/fpga/usrp3
      env:
        PATCHES_PATH: $(sdr-vivado-patches)
      displayName: "Run Testbenches"