aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1424
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1424')
-rw-r--r--testsuite/synth/issue1424/bar.vhdl18
-rwxr-xr-xtestsuite/synth/issue1424/testsuite.sh9
2 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/synth/issue1424/bar.vhdl b/testsuite/synth/issue1424/bar.vhdl
new file mode 100644
index 000000000..39cb9ca7b
--- /dev/null
+++ b/testsuite/synth/issue1424/bar.vhdl
@@ -0,0 +1,18 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.std_logic_arith.all;
+
+entity bar is
+ port (
+ input : in unsigned(3 downto 0);
+ output : out std_logic
+ );
+end bar;
+
+architecture bar of bar is
+begin
+ output <= '1' when input(3 downto 0) = conv_unsigned(7, 4)
+ else '0';
+end bar;
+
+
diff --git a/testsuite/synth/issue1424/testsuite.sh b/testsuite/synth/issue1424/testsuite.sh
new file mode 100755
index 000000000..cfd56bd0d
--- /dev/null
+++ b/testsuite/synth/issue1424/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS="--std=08 -fsynopsys"
+synth_analyze bar
+clean
+
+echo "Test successful"