Skip to content

Commit

Permalink
ci: Add config with hardware FDIV unit
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Jan 26, 2024
1 parent 0db6a9b commit 100e127
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,30 @@ jobs:
run: |
./run.py sw/run.yaml --simulator verilator -j
# Tests requiring hardware FDIV unit
sw-snitch-cluster-fdiv-vlt:
name: Simulate FDIV SW on Snitch Cluster w/ Verilator
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/snitch_cluster:tracer-dma
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build Software
working-directory: target/snitch_cluster
run: |
bender vendor init
make CFG_OVERRIDE=cfg/fdiv.hjson sw
- name: Build Hardware
working-directory: target/snitch_cluster
run: |
make CFG_OVERRIDE=cfg/fdiv.hjson bin/snitch_cluster.vlt
- name: Run Tests
working-directory: target/snitch_cluster
run: |
./run.py sw/fdiv.yaml --simulator verilator -j
#########################################
# Build SW on Snitch Cluster w/ Banshee #
#########################################
Expand Down
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,11 @@ snitch-cluster-banshee:
- cargo install --debug --path .
- cd ../target/snitch_cluster
- ./run.py sw/run.yaml --simulator banshee -j --run-dir runs/banshee

# Tests requiring hardware FDIV unit
snitch-cluster-fdiv-vsim:
script:
- cd target/snitch_cluster
- make CFG_OVERRIDE=cfg/fdiv sw
- make bin/snitch_cluster.vsim
- ./run.py sw/fdiv.yaml --simulator vsim -j --run-dir runs/vsim
5 changes: 5 additions & 0 deletions target/snitch_cluster/sw/fdiv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2024 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

runs:

0 comments on commit 100e127

Please sign in to comment.