mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 06:07:52 -04:00
[sim] create subdir 'simple'
This commit is contained in:
parent
eb4ba9f608
commit
ccac8fc8ce
10 changed files with 26 additions and 23 deletions
2
.github/workflows/Processor.yml
vendored
2
.github/workflows/Processor.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
|||
- name: '🚧 Run Processor Hardware Tests with shell script'
|
||||
uses: docker://ghcr.io/stnolting/neorv32/sim
|
||||
with:
|
||||
args: ./sim/ghdl.sh
|
||||
args: ./sim/simple/ghdl.sh
|
||||
|
||||
|
||||
VUnit-Container:
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
mkdir -p build
|
||||
|
||||
ghdl -i --work=neorv32 --workdir=build \
|
||||
../rtl/core/*.vhd \
|
||||
../rtl/processor_templates/*.vhd \
|
||||
../rtl/system_integration/*.vhd \
|
||||
../rtl/test_setups/*.vhd \
|
||||
neorv32_tb.simple.vhd \
|
||||
uart_rx.simple.vhd
|
|
@ -28,14 +28,15 @@ header "Copying neorv32 test-target into riscv-arch-test framework"
|
|||
)
|
||||
|
||||
header "Making local copy of NEORV32 'rtl', 'sim' & 'sw' folders"
|
||||
rm -rf work
|
||||
mkdir -p work/sim
|
||||
|
||||
export NEORV32_LOCAL_COPY=${NEORV32_LOCAL_COPY:-$(pwd)/work}
|
||||
|
||||
rm -rf "$NEORV32_LOCAL_COPY"
|
||||
mkdir -p "$NEORV32_LOCAL_COPY"
|
||||
for item in 'rtl' 'sw'; do
|
||||
cp -r ../"$item" work
|
||||
done
|
||||
for item in *.simple.vhd ghdl*.sh; do
|
||||
cp -r "$item" work/sim
|
||||
cp -r ../"$item" "$NEORV32_LOCAL_COPY"
|
||||
done
|
||||
cp -r simple "$NEORV32_LOCAL_COPY"/sim
|
||||
|
||||
header "Making local backup of original IMEM rtl file (work/rtl/core/neorv32_imem.ORIGINAL)"
|
||||
(
|
||||
|
@ -50,7 +51,7 @@ header "Starting RISC-V architecture tests"
|
|||
# work in progress FIXME
|
||||
printf "\n\e[1;33mWARNING! 'rv32e/*' tests are work in progress! \e[0m\n\n"
|
||||
|
||||
makeArgs="-C ../sw/isa-test/riscv-arch-test NEORV32_ROOT=$(pwd)/.. XLEN=32 RISCV_TARGET=neorv32"
|
||||
makeArgs="-C $NEORV32_LOCAL_COPY/sw/isa-test/riscv-arch-test NEORV32_ROOT=$(pwd)/.. XLEN=32 RISCV_TARGET=neorv32"
|
||||
makeTargets='clean build run verify'
|
||||
|
||||
[ -n "$1" ] && SUITES="$@" || SUITES='I C M privilege Zifencei'
|
||||
|
|
17
sim/simple/ghdl.setup.sh
Executable file
17
sim/simple/ghdl.setup.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
NEORV32_LOCAL_COPY=${NEORV32_LOCAL_COPY:-../..}
|
||||
|
||||
mkdir -p build
|
||||
|
||||
ghdl -i --work=neorv32 --workdir=build \
|
||||
$NEORV32_LOCAL_COPY/rtl/core/*.vhd \
|
||||
$NEORV32_LOCAL_COPY/rtl/processor_templates/*.vhd \
|
||||
$NEORV32_LOCAL_COPY/rtl/system_integration/*.vhd \
|
||||
$NEORV32_LOCAL_COPY/rtl/test_setups/*.vhd \
|
||||
neorv32_tb.simple.vhd \
|
||||
uart_rx.simple.vhd
|
Loading…
Add table
Add a link
Reference in a new issue