1
0
SEm-Labos/Libs/RiscV_test/NEORV32_test/simple/ghdl.sh

15 lines
481 B
Bash
Raw Permalink Normal View History

2024-02-23 13:01:05 +00:00
#!/usr/bin/env bash
# `GHDL` is used to check all VHDL files for syntax errors and to simulate the default testbench. The previously
# installed CPU test program is executed and the console output (UART0 primary UART) is dumped to a text file. After the
# simulation has finished, the text file is searched for a specific string. If the string is found, the CPU test was
# successful.
# Abort if any command returns != 0
set -e
cd $(dirname "$0")
./ghdl.setup.sh
./ghdl.run.sh