aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/issue339/test_bench.vhdl2
-rwxr-xr-xtestsuite/gna/issue339/testsuite.sh9
2 files changed, 9 insertions, 2 deletions
diff --git a/testsuite/gna/issue339/test_bench.vhdl b/testsuite/gna/issue339/test_bench.vhdl
index 74344dac7..74d58e274 100644
--- a/testsuite/gna/issue339/test_bench.vhdl
+++ b/testsuite/gna/issue339/test_bench.vhdl
@@ -22,7 +22,7 @@ architecture bench of test_bench is
signal s_clk : std_logic := '1';
begin
- s_rst <= '1' after 50 ns;
+ s_rst <= '0' after 50 ns;
s_clk <= not s_clk after 10 ns;
write_result : process (s_rst, s_clk) is
diff --git a/testsuite/gna/issue339/testsuite.sh b/testsuite/gna/issue339/testsuite.sh
index 8d02ad161..8a172d20b 100755
--- a/testsuite/gna/issue339/testsuite.sh
+++ b/testsuite/gna/issue339/testsuite.sh
@@ -4,8 +4,15 @@
export GHDL_STD_FLAGS=--std=08
analyze test_pkg.vhdl test_bench.vhdl
-elab_simulate test_bench --stop-time=700ns
+elab test_bench
+if false && ghdl_has_feature test_bench ghw; then
+ simulate test_bench --stop-time=700ns --wave=w.ghw
+else
+ simulate test_bench --stop-time=700ns
+fi
clean
+rm -f w.ghw
+rm -f output.txt
echo "Test successful"