diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-03-05 09:41:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 09:41:54 -0800 |
commit | 8b074cc473676288eb9cb04b09fb37ba6d11461a (patch) | |
tree | db28d5358d1485447f1e625d8aaceb18780ba06f /tests/arch/run-test.sh | |
parent | 0930c00f038453685bf4d8f5366db7fe71f54cf8 (diff) | |
parent | 69f155505816e38280a12bc3998d65d03874a404 (diff) | |
download | yosys-8b074cc473676288eb9cb04b09fb37ba6d11461a.tar.gz yosys-8b074cc473676288eb9cb04b09fb37ba6d11461a.tar.bz2 yosys-8b074cc473676288eb9cb04b09fb37ba6d11461a.zip |
Merge pull request #1739 from YosysHQ/eddie/issue1738
ice40: fix specify for -device {lp,u}
Diffstat (limited to 'tests/arch/run-test.sh')
-rwxr-xr-x | tests/arch/run-test.sh | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/arch/run-test.sh b/tests/arch/run-test.sh index 5292d1615..170078a7f 100755 --- a/tests/arch/run-test.sh +++ b/tests/arch/run-test.sh @@ -2,12 +2,23 @@ set -e +declare -A defines=( ["ice40"]="ICE40_HX ICE40_LP ICE40_U" ) + echo "Running syntax check on arch sim models" for arch in ../../techlibs/*; do find $arch -name cells_sim.v | while read path; do - echo -n "Test $path ->" - iverilog -t null -I$arch $path - echo " ok" + arch_name=$(basename -- $arch) + if [ "${defines[$arch_name]}" ]; then + 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 |