From 311e9448678c6c8ecf1af3dcd7f98c5cd1437c77 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 5 Mar 2022 07:25:17 +0100 Subject: testsuite/gna: add a test for #1994 --- testsuite/gna/issue1994/tb.vhdl | 16 ++++++++++++++++ testsuite/gna/issue1994/testsuite.sh | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 testsuite/gna/issue1994/tb.vhdl create mode 100755 testsuite/gna/issue1994/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/issue1994/tb.vhdl b/testsuite/gna/issue1994/tb.vhdl new file mode 100644 index 000000000..fa5663903 --- /dev/null +++ b/testsuite/gna/issue1994/tb.vhdl @@ -0,0 +1,16 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity tb is +end entity; + +architecture sim of tb is + signal clk : std_logic := '1'; +begin + clk <= not clk after 100 ms; -- period / 2; + process is + begin + wait until rising_edge(clk); + end process; +end architecture; diff --git a/testsuite/gna/issue1994/testsuite.sh b/testsuite/gna/issue1994/testsuite.sh new file mode 100755 index 000000000..4ee9e994f --- /dev/null +++ b/testsuite/gna/issue1994/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze tb.vhdl +elab_simulate tb + +clean + +echo "Test successful" -- cgit v1.2.3