diff options
-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; |