mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-20 12:08:05 -04:00
[ci] Add co-simulation testing of CoreMark
This commit is contained in:
parent
63ac629d10
commit
e70add7228
3 changed files with 31 additions and 0 deletions
|
@ -88,6 +88,11 @@ jobs:
|
|||
git checkout "$RISCV_COMPLIANCE_GIT_VERSION"
|
||||
displayName: Get RISC-V Compliance test suite
|
||||
|
||||
- bash: |
|
||||
# Build CoreMark without performance counter dump for co-simulation testing
|
||||
make -C ./examples/sw/benchmarks/coremark SUPPRESS_PCOUNT_DUMP=1
|
||||
displayName: Build CoreMark
|
||||
|
||||
# Run Ibex RTL CI per supported configuration
|
||||
- template : ci/ibex-rtl-ci-steps.yml
|
||||
parameters:
|
||||
|
|
|
@ -65,3 +65,23 @@ steps:
|
|||
done
|
||||
exit $fail
|
||||
displayName: Run RISC-V Compliance test for Ibex RV32IMC for ${{ config }}
|
||||
|
||||
- bash: |
|
||||
# Setup environment to use cosim with Simple System
|
||||
export IBEX_COSIM_ISS_ROOT=/opt/spike-cosim
|
||||
export LD_LIBRARY_PATH=/opt/spike-cosim/lib:$LD_LIBRARY_PATH
|
||||
|
||||
# Build simple system with co-simulation
|
||||
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_simple_system_cosim $IBEX_CONFIG_OPTS
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo -n "##vso[task.logissue type=error]"
|
||||
echo "Build Simple System with co-simulation failed. Run fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_simple_system_cosim $IBEX_CONFIG_OPTS to check and fix all errors."
|
||||
fi
|
||||
|
||||
build/lowrisc_ibex_ibex_simple_system_cosim_0/sim-verilator/Vibex_simple_system --meminit=ram,examples/sw/benchmarks/coremark/coremark.elf
|
||||
if [ $? != 0 ]; then
|
||||
echo -n "##vso[task.logissue type=error]"
|
||||
echo "Running CoreMark failed co-simulation testing"
|
||||
fi
|
||||
displayName: Run CoreMark for ${{ config }}
|
||||
|
|
|
@ -32,6 +32,11 @@ case "$ID-$VERSION_ID" in
|
|||
$SUDO_CMD sh -c "echo 'deb http://download.opensuse.org/repositories/home:/phiwag:/edatools/xUbuntu_$VERSION_ID/ /' > /etc/apt/sources.list.d/edatools.list"
|
||||
$SUDO_CMD apt-get update
|
||||
|
||||
# Make spike-cosim repository available
|
||||
curl -Ls https://download.opensuse.org/repositories/home:gac_lowrisc/xUbuntu_18.04/Release.key | $SUDO_CMD apt-key add -
|
||||
$SUDO_CMD sh -c "echo 'deb http://download.opensuse.org/repositories/home:/gac_lowrisc/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/spike-cosim.list" sudo apt update
|
||||
$SUDO_CMD apt-get update
|
||||
|
||||
# Packaged dependencies
|
||||
# Install python3-yaml through apt to get a version with libyaml bindings,
|
||||
# which is significantly faster than the pure Python version.
|
||||
|
@ -53,6 +58,7 @@ case "$ID-$VERSION_ID" in
|
|||
libelf-dev \
|
||||
clang-format \
|
||||
"verilator-$VERILATOR_VERSION" \
|
||||
spike-cosim \
|
||||
xz-utils
|
||||
|
||||
# Python dependencies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue