[ci] Download cosim from lowRISC GCP bucket

This commit is contained in:
Greg Chadwick 2022-08-22 21:53:06 +01:00 committed by Greg Chadwick
parent cfef9ef7bb
commit 9c4e4bdf6a
4 changed files with 10 additions and 6 deletions

View file

@ -67,6 +67,7 @@ steps:
displayName: Run RISC-V Compliance test for Ibex RV32IMC for ${{ config }}
- bash: |
source ci/setup-cosim.sh
# Build simple system with co-simulation
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_simple_system_cosim $IBEX_CONFIG_OPTS

View file

@ -61,12 +61,12 @@ case "$ID-$VERSION_ID" in
wget \
"verilator-$VERILATOR_VERSION" \
xz-utils
# "ibex-cosim-$IBEX_COSIM_VERSION" \
# TODO: Remove this hack, workaround due to OBS mirrors not syncing
# correctly
wget https://download.opensuse.org/repositories/home:/gac_lowrisc/xUbuntu_18.04/amd64/ibex-cosim-0.4_0.4-1_amd64.deb
$SUDO_CMD dpkg -i ibex-cosim-0.4_0.4-1_amd64.deb
wget https://storage.googleapis.com/ibex-cosim-builds/ibex-cosim-$IBEX_COSIM_VERSION.tar.gz
$SUDO_CMD mkdir -p /tools/riscv-isa-sim
$SUDO_CMD chmod 777 /tools/riscv-isa-sim
$SUDO_CMD tar -C /tools/riscv-isa-sim -xvzf ibex-cosim-$IBEX_COSIM_VERSION.tar.gz --strip-components=1
echo "##vso[task.prependpath]/tools/riscv-isa-sim/bin"
# Python dependencies
#

3
ci/setup-cosim.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
export PKG_CONFIG_PATH=/tools/riscv-isa-sim/lib/pkgconfig:$PATH

View file

@ -7,7 +7,7 @@
# end up as float otherwise).
variables:
VERILATOR_VERSION: "4.104"
IBEX_COSIM_VERSION: "0.4"
IBEX_COSIM_VERSION: "d14e109e"
RISCV_TOOLCHAIN_TAR_VERSION: "20220210-1"
RISCV_TOOLCHAIN_TAR_VARIANT: "lowrisc-toolchain-gcc-rv32imcb"
RISCV_COMPLIANCE_GIT_VERSION: "844c6660ef3f0d9b96957991109dfd80cc4938e2"