diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-13 06:19:01 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-13 06:19:01 +0200 |
commit | d0e80a90cd97e60164eaa0d97e0d17676880e4bf (patch) | |
tree | b24cbab435846048c40316641cbfcb8a5f43bb1b /testsuite | |
parent | d0dbcb453c2af50ae1d117dfce81ab52c124d5db (diff) | |
download | ghdl-d0e80a90cd97e60164eaa0d97e0d17676880e4bf.tar.gz ghdl-d0e80a90cd97e60164eaa0d97e0d17676880e4bf.tar.bz2 ghdl-d0e80a90cd97e60164eaa0d97e0d17676880e4bf.zip |
testsuite/synth: add test for #1221
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/synth/issue1221/testsuite.sh | 8 | ||||
-rw-r--r-- | testsuite/synth/issue1221/top.vhdl | 15 |
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/synth/issue1221/testsuite.sh b/testsuite/synth/issue1221/testsuite.sh new file mode 100755 index 000000000..88de793a8 --- /dev/null +++ b/testsuite/synth/issue1221/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +synth_analyze top +clean + +echo "Test successful" diff --git a/testsuite/synth/issue1221/top.vhdl b/testsuite/synth/issue1221/top.vhdl new file mode 100644 index 000000000..ef9dd4312 --- /dev/null +++ b/testsuite/synth/issue1221/top.vhdl @@ -0,0 +1,15 @@ +library IEEE; +use IEEE.STD_LOGIC_1164.ALL; +use IEEE.NUMERIC_STD.ALL; + +entity top is + port( + a : in unsigned(7 downto 0); + q : out unsigned(7 downto 0) + ); +end entity; + +architecture arch of top is +begin + q <= 0 - a; +end architecture; |