mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
[riscv-arch-test] move run script to subdir 'sim'
This commit is contained in:
parent
11c1f90b67
commit
8cb0df7cea
4 changed files with 25 additions and 25 deletions
2
.github/workflows/riscv-arch-test.yml
vendored
2
.github/workflows/riscv-arch-test.yml
vendored
|
@ -34,4 +34,4 @@ jobs:
|
|||
backend: gcc
|
||||
|
||||
- name: '⚙️ Run RISC-V Architecture Tests'
|
||||
run: ./riscv-arch-test/run_riscv_arch_test.sh
|
||||
run: ./sim/run_riscv_arch_test.sh
|
||||
|
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -31,3 +31,7 @@ sw/image_gen/image_gen.exe
|
|||
# example bitstreams
|
||||
/setups/examples/*.bit
|
||||
/setups/examples/*.svf
|
||||
|
||||
# riscv-arch-test
|
||||
|
||||
/sim/work/
|
||||
|
|
2
riscv-arch-test/work/.gitignore
vendored
2
riscv-arch-test/work/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
neorv32
|
||||
riscv-arch-test
|
|
@ -5,47 +5,45 @@ set -e
|
|||
|
||||
cd $(dirname "$0")
|
||||
|
||||
# neorv32 home folder
|
||||
NEORV32_LOCAL_HOME=$(pwd)/work
|
||||
|
||||
if [ -z "$RISCV_PREFIX" ]; then
|
||||
export RISCV_PREFIX='riscv32-unknown-elf-'
|
||||
fi
|
||||
|
||||
header() {
|
||||
echo "--------------------------------------------------------------------------"
|
||||
echo "> $@..."
|
||||
echo "--------------------------------------------------------------------------"
|
||||
}
|
||||
|
||||
RISCV_PREFIX="${RISCV_PREFIX:-riscv32-unknown-elf-}"
|
||||
|
||||
header "Checking RISC-V GCC toolchain"
|
||||
"$RISCV_PREFIX"gcc -v
|
||||
|
||||
header "Checking GHDL simulator"
|
||||
ghdl -v
|
||||
|
||||
header "Checking 'riscv-arch-test' GitHub repository (submodule)"
|
||||
git submodule update --init
|
||||
|
||||
rm -rf "$NEORV32_LOCAL_HOME"
|
||||
mkdir -p "$NEORV32_LOCAL_HOME"
|
||||
header "Copying neorv32 test-target into riscv-arch-test framework"
|
||||
(
|
||||
cd ../riscv-arch-test
|
||||
cp -vr port-neorv32 riscv-arch-test/riscv-target/neorv32
|
||||
)
|
||||
|
||||
header "Making local copy of NEORV32 'rtl', 'sim' & 'sw' folders"
|
||||
for item in 'rtl' 'sim' 'sw'; do
|
||||
cp -r ../"$item"/ "$NEORV32_LOCAL_HOME"/.
|
||||
rm -rf work
|
||||
mkdir -p work/sim
|
||||
for item in 'rtl' 'sw'; do
|
||||
cp -r ../"$item" work
|
||||
done
|
||||
for item in rtl_modules *.simple.vhd ghdl_sim.sh; do
|
||||
cp -r "$item" work/sim
|
||||
done
|
||||
|
||||
header "Copying neorv32 test-target into riscv-arch-test framework"
|
||||
cp -vr port-neorv32 riscv-arch-test/riscv-target/neorv32
|
||||
|
||||
printf "\n>>> Making local backup of original IMEM rtl file ($NEORV32_LOCAL_HOME/rtl/core/neorv32_imem.ORIGINAL)\n\n"
|
||||
cp "$NEORV32_LOCAL_HOME"/rtl/core/neorv32_imem.vhd "$NEORV32_LOCAL_HOME"/rtl/core/neorv32_imem.ORIGINAL
|
||||
|
||||
header "Component installation done"
|
||||
header "Making local backup of original IMEM rtl file (work/rtl/core/neorv32_imem.ORIGINAL)"
|
||||
(
|
||||
cd work/rtl/core/
|
||||
cp neorv32_imem.vhd neorv32_imem.ORIGINAL
|
||||
)
|
||||
|
||||
header "Starting RISC-V architecture tests"
|
||||
|
||||
makeArgs="-C riscv-arch-test NEORV32_LOCAL_COPY=$NEORV32_LOCAL_HOME XLEN=32 RISCV_TARGET=neorv32"
|
||||
makeArgs="-C ../riscv-arch-test/riscv-arch-test NEORV32_LOCAL_COPY=$(pwd)/work XLEN=32 RISCV_TARGET=neorv32"
|
||||
|
||||
make $makeArgs clean
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue