Add software test and golden model for subtraction (#53) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 ETH Zurich and University of Bologna. | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Run functional regression checks | |
name: ci | |
on: [push, pull_request] | |
jobs: | |
######## | |
# Docs # | |
######## | |
docs: | |
name: Build documentation | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/pulp-platform/snitch_cluster:main | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build docs | |
run: make docs | |
############################################## | |
# Simulate SW on Snitch Cluster w/ Verilator # | |
############################################## | |
sw-snitch-cluster-vlt: | |
name: Simulate SW on Snitch Cluster w/ Verilator | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/kuleuven-micas/snax:latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Build Software | |
run: | | |
bender vendor init | |
make -C target/snitch_cluster sw | |
- name: Build Hardware | |
run: | | |
make -C target/snitch_cluster bin/snitch_cluster.vlt | |
- name: Run Tests | |
working-directory: target/snitch_cluster | |
run: | | |
./run.py sw/run.yaml --simulator verilator -j | |
############################################ | |
# Simulate SW on Snax Cluster w/ Verilator # | |
############################################ | |
sw-snax-mac-cluster-vlt: | |
name: Simulate SW on SNAX MAC Cluster w/ Verilator | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/kuleuven-micas/snax:latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Build Hardware | |
run: | | |
make CFG_OVERRIDE=cfg/snax-mac.hjson \ | |
-C target/snitch_cluster bin/snitch_cluster.vlt | |
- name: Build Software | |
run: | | |
bender vendor init | |
make -C target/snitch_cluster sw | |
- name: Run Tests | |
working-directory: target/snitch_cluster | |
run: |- | |
./run.py sw/tests/snax-mac-run.yaml --simulator verilator | |
./run.py sw/apps/snax-mac-run.yaml --simulator verilator | |
sw-snax-gemm-cluster-vlt: | |
name: Simulate SW on SNAX GEMM Cluster w/ Verilator | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/kuleuven-micas/snax:latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Build Hardware | |
run: | | |
make CFG_OVERRIDE=cfg/snax-gemm.hjson \ | |
-C target/snitch_cluster bin/snitch_cluster.vlt | |
- name: Build Software | |
run: | | |
make -C target/snitch_cluster sw | |
- name: Run Tests | |
working-directory: target/snitch_cluster | |
run: |- | |
./run.py sw/tests/snax-gemm-run.yaml --simulator verilator | |
./run.py sw/apps/snax-gemm-run.yaml --simulator verilator | |
############################################ | |
# Build SW on Snitch Cluster w/ Banshee # | |
######################################### | |
sw-snitch-cluster-banshee: | |
name: Simulate SW on Snitch Cluster w/ Banshee | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/pulp-platform/snitch_cluster:main | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Build Software | |
run: | | |
bender vendor init | |
make -C target/snitch_cluster SELECT_RUNTIME=banshee sw | |
- name: Run Tests | |
env: | |
SNITCH_LOG: info | |
working-directory: target/snitch_cluster | |
run: | | |
./run.py sw/run.yaml --simulator banshee -j |