Skip to content

fix linting warning #152

fix linting warning

fix linting warning #152

Workflow file for this run

name: Verilator Test Suite
on:
push:
branches: [ "**" ]
jobs:
sim-split-mode:
runs-on: ubuntu-latest
container:
image: verilator/verilator:4.104
strategy:
matrix:
conf_name: [general, line-ring, multicast, vc_alloc, conv_route, tiny_topos, mesh_3d]
env:
ROOT: ${{ github.workspace }}/mpsoc
PRONOC_WORK: ${{ github.workspace }}/mpsoc_work
GOLDEN_REF: ${{ github.workspace }}/mpsoc/Integration_test/synthetic_sim/golden_ref
LOG_DIR: ${{ github.workspace }}/mpsoc/Integration_test/synthetic_sim/result_logs
steps:
- uses: actions/checkout@v4
- name: Run NoC simulation split mode - ${{ matrix.conf_name }}
run: |
set -ex
verilator --version
echo "Running simulation for config: ${{ matrix.conf_name }}"
cd $ROOT/Integration_test/synthetic_sim/src
perl ./verify.perl -p 15 -u 80 -l 2 -s 4 -d ${{ matrix.conf_name }}
perl ./check.pl -o $GOLDEN_REF/${{ matrix.conf_name }} -n $LOG_DIR/${{ matrix.conf_name }} || {
echo "❌ Verification check failed. Please inspect the simulation logs."
exit 1
}
- name: Upload failures artifact - ${{ matrix.conf_name }}
if: failure()
uses: actions/upload-artifact@v4
with:
name: simulation-failures-${{ matrix.conf_name }}
path: |
${{ env.PRONOC_WORK }}/failures.txt
- name: Upload simulation reports - ${{ matrix.conf_name }}
uses: actions/upload-artifact@v4
with:
name: simulation-reports-${{ matrix.conf_name }}-${{ github.run_id }}
path: ${{ env.LOG_DIR }}
retention-days: 7
tiny-topos-flat-mode:
needs: sim-split-mode
runs-on: ubuntu-latest
container:
image: verilator/verilator:4.104
env:
ROOT: ${{ github.workspace }}/mpsoc
PRONOC_WORK: ${{ github.workspace }}/mpsoc_work
GOLDEN_REF: ${{ github.workspace }}/mpsoc/Integration_test/synthetic_sim/golden_ref
LOG_DIR: ${{ github.workspace }}/mpsoc/Integration_test/synthetic_sim/result_logs
steps:
- uses: actions/checkout@v4
- name: Run NoC simulation flat_mode - tiny_topos
run: |
set -ex
cd $ROOT/Integration_test/synthetic_sim/src
perl ./verify.perl -p 15 -u 80 -l 2 -s 4 -d tiny_topos -f
perl ./check.pl -o $GOLDEN_REF/tiny_topos -n $LOG_DIR/tiny_topos || {
echo "❌ flat config differs from non-flat."
exit 1
}
- name: Upload failures artifact - flat-tiny-tops
if: failure()
uses: actions/upload-artifact@v4
with:
name: simulation-failures-tiny_topos-flat-${{ github.run_id }}
path: |
${{ env.PRONOC_WORK }}/failures.txt
- name: Upload simulation reports - flat-tiny-tops
uses: actions/upload-artifact@v4
with:
name: simulation-reports-flat-tiny-tops-${{ github.run_id }}
path: ${{ env.LOG_DIR }}
retention-days: 7