Skip to content

Commit

Permalink
hw: Canonicalize SSR verification, add to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Jun 19, 2024
1 parent 1cb76ff commit 96bf728
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ snitch-cluster-sw-banshee:
# - snitch
# Currently failing IP tests/scripts:
# - reqrsp_interface
# - snitch_ssr
snitch-ip-tests:
needs: []
parallel:
Expand All @@ -69,6 +68,7 @@ snitch-ip-tests:
- mem_interface
- snitch_cluster
- tcdm_interface
- snitch_ssr
script:
- cd hw/$IP
- ./util/compile.sh
Expand Down
2 changes: 1 addition & 1 deletion hw/snitch_ssr/test/tb_simple_ssr.sv
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module tb_simple_ssr;
localparam int unsigned NumLoops = 4;

// Test data parameters
localparam string DataFile = "../test/tb_simple_ssr.hex";
localparam string DataFile = "./test/tb_simple_ssr.hex";
localparam int unsigned ValBase = 'h0;
localparam int unsigned IdxBase = 'h2000;
localparam int unsigned IdxStride = 'h800; // Stride of index arrays of different sizes
Expand Down
2 changes: 1 addition & 1 deletion hw/snitch_ssr/test/tb_simple_ssr_streamer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module tb_simple_ssr_streamer;
localparam int unsigned WPorts = 1;

// Test data parameters
localparam string DataFile = "../test/tb_simple_ssr_streamer.hex";
localparam string DataFile = "./test/tb_simple_ssr_streamer.hex";
localparam int unsigned ValBase = 'h0;
localparam int unsigned IdxBase = 'h2000;
localparam int unsigned IdxStride = 'h800; // Stride of index arrays of different sizes
Expand Down
24 changes: 24 additions & 0 deletions hw/snitch_ssr/util/run_vsim.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# Copyright 2024 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
#
# Fabian Schuiki <fschuiki@iis.ee.ethz.ch>
# Andreas Kurth <akurth@iis.ee.ethz.ch>
# Paul Scheffler <paulsc@iis.ee.ethz.ch>

set -e
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)

[ ! -z "$VSIM" ] || VSIM=vsim

call_vsim() {
# We treat accessing unwritten associative array (memory) locations as fatal
echo "log -r /*; run -all" | $QUESTA_SEPP $VSIM -c -coverage -voptargs='+acc +cover=sbecft' "$@" -fatal vsim-3829 | tee vsim.log 2>&1
(grep "SUCCESS" transcript)
(! grep -n "Fatal:" transcript)
(! grep -n "Error:" transcript)
}

call_vsim tb_simple_ssr
call_vsim tb_simple_ssr_streamer
13 changes: 0 additions & 13 deletions hw/snitch_ssr/util/start_simple_ssr.tcl

This file was deleted.

14 changes: 0 additions & 14 deletions hw/snitch_ssr/util/start_simple_ssr_streamer.tcl

This file was deleted.

0 comments on commit 96bf728

Please sign in to comment.