diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-07 18:32:30 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-07 18:32:30 +0100 |
commit | bb32591900235c89751b435c5678c3329f5ab03d (patch) | |
tree | 35a39bd85e2cee2adb59e38eec46c623d857ab21 /testsuite/testenv.sh | |
parent | 2e9fec6bb91436b40b2ebc6942e34736f97d9825 (diff) | |
download | ghdl-bb32591900235c89751b435c5678c3329f5ab03d.tar.gz ghdl-bb32591900235c89751b435c5678c3329f5ab03d.tar.bz2 ghdl-bb32591900235c89751b435c5678c3329f5ab03d.zip |
testsuite/synth: add test for #1155
Diffstat (limited to 'testsuite/testenv.sh')
-rw-r--r-- | testsuite/testenv.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh index 93009984b..d95644dc3 100644 --- a/testsuite/testenv.sh +++ b/testsuite/testenv.sh @@ -116,6 +116,22 @@ synth_analyze() analyze syn_$1.vhdl } +# Analyze and test $1 +# Then synthesize and test the result +synth_tb() +{ + t=$1 + + analyze $t.vhdl tb_$t.vhdl + elab_simulate tb_$t + clean + + synth $t.vhdl -e $t > syn_$t.vhdl + analyze syn_$t.vhdl tb_$t.vhdl + elab_simulate tb_$t --ieee-asserts=disable-at-0 + clean +} + # Check if a feature is present ghdl_has_feature () { |