[sim] add simulation check to sw makefiles as target 'sim-check'

This commit is contained in:
umarcor 2024-02-20 17:41:31 +01:00
parent f4a6365e38
commit 118cccf6ed
4 changed files with 7 additions and 4 deletions

View file

@ -36,7 +36,7 @@ jobs:
- name: '🚧 Run Processor Hardware Tests with shell script'
uses: docker://ghcr.io/stnolting/neorv32/sim
with:
args: ./sim/simple/ghdl.sh
args: make -C sw/example/processor_check sim-check
VUnit-Container:

View file

@ -41,6 +41,3 @@ if [ -n "$GHDL_DEVNULL" ]; then
else
$runcmd
fi
# verify results of processor check: sw/example/processor_check
cat neorv32.uart0.sim_mode.text.out | grep "PROCESSOR TEST COMPLETED SUCCESSFULLY!"

View file

@ -2,3 +2,6 @@
NEORV32_HOME ?= ../../..
include $(NEORV32_HOME)/sw/common/common.mk
sim-check: sim
cat $(NEORV32_HOME)/sim/simple/neorv32.uart0.sim_mode.text.out | grep "Hello world! :)"

View file

@ -2,3 +2,6 @@
NEORV32_HOME ?= ../../..
include $(NEORV32_HOME)/sw/common/common.mk
sim-check: sim
cat $(NEORV32_HOME)/sim/simple/neorv32.uart0.sim_mode.text.out | grep "PROCESSOR TEST COMPLETED SUCCESSFULLY!"