diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-01-20 06:57:44 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-01-20 06:58:21 +0100 |
commit | 5ea993bae3c78ee8bdda3942be80fa38091f4591 (patch) | |
tree | 05a2dca57311b8fd00ec1a375df318a2a47dc5a5 | |
parent | a8379ef707865fb4aebe2d1941377989f5cd01d3 (diff) | |
download | ghdl-5ea993bae3c78ee8bdda3942be80fa38091f4591.tar.gz ghdl-5ea993bae3c78ee8bdda3942be80fa38091f4591.tar.bz2 ghdl-5ea993bae3c78ee8bdda3942be80fa38091f4591.zip |
testsuite/synth: add testcase from tgingold/ghdlsynth-beta#80
-rw-r--r-- | testsuite/synth/synth80/testcase.vhdl | 16 | ||||
-rwxr-xr-x | testsuite/synth/synth80/testsuite.sh | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/synth/synth80/testcase.vhdl b/testsuite/synth/synth80/testcase.vhdl new file mode 100644 index 000000000..49c25340d --- /dev/null +++ b/testsuite/synth/synth80/testcase.vhdl @@ -0,0 +1,16 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity testcase is + generic ( + init_bit : std_logic := '1' + ); +end testcase; + +architecture rtl of testcase is + -- assigning generic to std_logic works OK + signal test_assign : std_logic := init_bit; + -- assigning generic to part of std_logic_vector breaks ghdlsynth + signal test_assign_vector : std_logic_vector(1 downto 0) := init_bit & "0"; +begin +end rtl; diff --git a/testsuite/synth/synth80/testsuite.sh b/testsuite/synth/synth80/testsuite.sh new file mode 100755 index 000000000..6d097693c --- /dev/null +++ b/testsuite/synth/synth80/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +synth testcase.vhdl -e > syn_testcase.vhdl +clean + +echo "Test successful" |