From 2d1dda579d0f47fa71fa0dedf60a1a1c29177d34 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 29 Aug 2021 07:28:45 +0200 Subject: testsuite/synth: add a test for #1832 --- testsuite/synth/issue1832/issue.vhdl | 21 +++++++++++++++++++++ testsuite/synth/issue1832/testsuite.sh | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 testsuite/synth/issue1832/issue.vhdl create mode 100755 testsuite/synth/issue1832/testsuite.sh (limited to 'testsuite/synth') diff --git a/testsuite/synth/issue1832/issue.vhdl b/testsuite/synth/issue1832/issue.vhdl new file mode 100644 index 000000000..4d005d5ef --- /dev/null +++ b/testsuite/synth/issue1832/issue.vhdl @@ -0,0 +1,21 @@ +library ieee; + use ieee.std_logic_1164.all; + + +entity issue is + port ( + clk : in std_logic; + a, b : in std_logic + ); +end entity issue; + + +architecture psl of issue is +begin + + -- All is sensitive to rising edge of clk + default clock is rising_edge(clk); + + -- This assertion should hold + INF_a : assert always {a} |=> {not b[*0 to inf]; b}; +end architecture psl; diff --git a/testsuite/synth/issue1832/testsuite.sh b/testsuite/synth/issue1832/testsuite.sh new file mode 100755 index 000000000..bec350d37 --- /dev/null +++ b/testsuite/synth/issue1832/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_only issue + +echo "Test successful" -- cgit v1.2.3