Skip to content

Commit

Permalink
ci: added gvsoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain Haugou committed Oct 11, 2024
1 parent 3b4b15d commit f6a7a03
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,32 @@ jobs:
run: |
make SIM_DIR=./runs/simple annotate -j
##############################################
# Simulate SW on Snitch Cluster w/ GVSOC #
##############################################

sw-snitch-cluster-gvsoc:
name: Simulate SW on Snitch Cluster w/ GVSOC
runs-on: ubuntu-22.04
needs: build-docker
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != github.repository
container:
image: ghcr.io/pulp-platform/snitch_cluster:${{ github.ref_name }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build Software
working-directory: target/snitch_cluster
run: |
make CFG_OVERRIDE=cfg/github-ci.hjson OPENOCD_SEMIHOSTING=ON sw
- name: Run Tests
working-directory: target/snitch_cluster
run: |
GVSOC_TARGET=pulp.snitch.snitch_cluster_single && ./util/run.py sw/run.yaml --simulator gvsoc -j
# #########################################
# # Build SW on Snitch Cluster w/ Banshee #
# #########################################
Expand Down
5 changes: 3 additions & 2 deletions target/snitch_cluster/sw/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

runs:
- elf: tests/build/alias.elf
simulators: [vsim, vcs, verilator, gvsoc] # banshee does not model alias regions
simulators: [vsim, vcs, verilator] # banshee does not model alias regions
- elf: tests/build/atomics.elf
simulators: [vsim, vcs, verilator, gvsoc] # banshee fails with exit code 0x4
- elf: tests/build/barrier.elf
Expand Down Expand Up @@ -72,8 +72,9 @@ runs:
- elf: tests/build/non_null_exitcode.elf
retcode: 56
- elf: tests/build/caq.elf
simulators: [vsim, vcs, verilator, banshee] # GVSOC does not model caq
- elf: tests/build/caq_frep.elf
simulators: [vsim, vcs, verilator, gvsoc] # banshee does not model FREP timing
simulators: [vsim, vcs, verilator] # banshee does not model FREP timing
- elf: apps/blas/axpy/build/axpy.elf
cmd: [../../../sw/blas/axpy/scripts/verify.py, "${sim_bin}", "${elf}"]
- elf: apps/blas/gemm/build/gemm.elf
Expand Down

0 comments on commit f6a7a03

Please sign in to comment.