From a2677c042c4594357c23ac2f1c9e09b1b5bf0e41 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 13 Apr 2022 21:25:14 +0200 Subject: testsuite/synth: add a test for #2035 --- testsuite/synth/issue2035/cdc_fifo_rtl.vhdl | 13 +++++++++++++ testsuite/synth/issue2035/testsuite.sh | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 testsuite/synth/issue2035/cdc_fifo_rtl.vhdl create mode 100755 testsuite/synth/issue2035/testsuite.sh (limited to 'testsuite/synth') diff --git a/testsuite/synth/issue2035/cdc_fifo_rtl.vhdl b/testsuite/synth/issue2035/cdc_fifo_rtl.vhdl new file mode 100644 index 000000000..059804d69 --- /dev/null +++ b/testsuite/synth/issue2035/cdc_fifo_rtl.vhdl @@ -0,0 +1,13 @@ + +ENTITY cdc_fifo IS +END ENTITY cdc_fifo; + +LIBRARY IEEE; +USE IEEE.std_logic_1164.ALL; + +ARCHITECTURE rtl OF cdc_fifo IS + SIGNAL ver_clk : std_logic; + ATTRIBUTE gclk : boolean; + ATTRIBUTE gclk OF ver_clk : SIGNAL is true; +BEGIN +END ARCHITECTURE; diff --git a/testsuite/synth/issue2035/testsuite.sh b/testsuite/synth/issue2035/testsuite.sh new file mode 100755 index 000000000..f1064aaca --- /dev/null +++ b/testsuite/synth/issue2035/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +synth -Werror cdc_fifo_rtl.vhdl -e > syn_cdc_fifo_rtl.vhdl + +echo "Test successful" -- cgit v1.2.3