mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-03 19:35:43 +00:00
tests: extend tests/arch/run-tests.sh for defines
This commit is contained in:
parent
0930c00f03
commit
3c2e910bb3
1 changed files with 14 additions and 3 deletions
|
@ -2,12 +2,23 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
declare -A defines=( ["ice40"]="ICE40_HX ICE40_LP ICE40_U" )
|
||||||
|
|
||||||
echo "Running syntax check on arch sim models"
|
echo "Running syntax check on arch sim models"
|
||||||
for arch in ../../techlibs/*; do
|
for arch in ../../techlibs/*; do
|
||||||
find $arch -name cells_sim.v | while read path; do
|
find $arch -name cells_sim.v | while read path; do
|
||||||
echo -n "Test $path ->"
|
arch_name=$(basename -- $arch)
|
||||||
iverilog -t null -I$arch $path
|
if [ "${defines[$arch_name]}" ]; then
|
||||||
echo " ok"
|
for def in ${defines[$arch_name]}; do
|
||||||
|
echo -n "Test $path -D$def ->"
|
||||||
|
iverilog -t null -I$arch -D$def $path
|
||||||
|
echo " ok"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo -n "Test $path ->"
|
||||||
|
iverilog -t null -I$arch $path
|
||||||
|
echo " ok"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue