aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/issue1288/issue.vhdl34
-rwxr-xr-xtestsuite/gna/issue1288/testsuite.sh9
2 files changed, 43 insertions, 0 deletions
diff --git a/testsuite/gna/issue1288/issue.vhdl b/testsuite/gna/issue1288/issue.vhdl
new file mode 100644
index 000000000..23550baa4
--- /dev/null
+++ b/testsuite/gna/issue1288/issue.vhdl
@@ -0,0 +1,34 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+
+entity issue is
+end issue;
+
+
+architecture sim of issue is
+
+ signal clk : std_logic := '1';
+ signal a, b : std_logic := '0';
+
+begin
+
+ clk <= not clk after 5 ns;
+
+ a <= '1' after 20 ns,
+ '0' after 30 ns,
+ '1' after 40 ns,
+ '0' after 50 ns;
+
+ b <= '1' after 50 ns,
+ '0' after 60 ns,
+ '1' after 70 ns,
+ '0' after 80 ns;
+
+ -- All is sensitive to rising edge of clk
+ -- psl default clock is rising_edge(clk);
+
+ -- This assertion holds
+ -- psl NEXT_0_a : assert always (a -> next_e[3 to 5] (b));
+
+end architecture sim;
diff --git a/testsuite/gna/issue1288/testsuite.sh b/testsuite/gna/issue1288/testsuite.sh
new file mode 100755
index 000000000..7fbb310e6
--- /dev/null
+++ b/testsuite/gna/issue1288/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze -fpsl issue.vhdl
+
+clean
+
+echo "Test successful"