aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue2169/bug.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue2169/bug.vhdl')
-rw-r--r--testsuite/synth/issue2169/bug.vhdl17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/synth/issue2169/bug.vhdl b/testsuite/synth/issue2169/bug.vhdl
new file mode 100644
index 000000000..1233d91e1
--- /dev/null
+++ b/testsuite/synth/issue2169/bug.vhdl
@@ -0,0 +1,17 @@
+library IEEE;
+use IEEE.std_logic_1164.all;
+use IEEE.numeric_std.all;
+
+entity bug is
+ port(
+ a : in unsigned( 7 downto 0);
+ b : in unsigned(15 downto 0);
+ r : out unsigned(23 downto 0)
+ );
+end entity;
+
+architecture rtl of bug is
+
+begin
+ r <= resize(a*b, 24);
+end architecture;