diff options
-rw-r--r-- | testsuite/synth/issue1132/bar.vhdl | 22 | ||||
-rwxr-xr-x | testsuite/synth/issue1132/testsuite.sh | 12 |
2 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/synth/issue1132/bar.vhdl b/testsuite/synth/issue1132/bar.vhdl new file mode 100644 index 000000000..17aa50732 --- /dev/null +++ b/testsuite/synth/issue1132/bar.vhdl @@ -0,0 +1,22 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity bar is + port ( + clk : in std_logic; + input : in unsigned(7 downto 0); + output_a : out unsigned(7 downto 0); + output_b : out unsigned(7 downto 0) + ); +end bar; + +architecture bar of bar is + +begin + + output_a <= 10 + input; + -- This works as expected + output_b <= input + 10; + +end bar; diff --git a/testsuite/synth/issue1132/testsuite.sh b/testsuite/synth/issue1132/testsuite.sh new file mode 100755 index 000000000..c118fa784 --- /dev/null +++ b/testsuite/synth/issue1132/testsuite.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +. ../../testenv.sh + +for t in bar; do + synth $t.vhdl -e $t > syn_$t.vhdl + analyze syn_$t.vhdl +done + +clean + +echo "Test successful" |