From 4dd28fa272167fd8c02a8f95ab8bcb10f3ea9601 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 4 Aug 2020 19:19:25 +0200 Subject: testsuite/synth: add a test for #1424 --- testsuite/synth/issue1424/bar.vhdl | 18 ++++++++++++++++++ testsuite/synth/issue1424/testsuite.sh | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 testsuite/synth/issue1424/bar.vhdl create mode 100755 testsuite/synth/issue1424/testsuite.sh (limited to 'testsuite') 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" -- cgit v1.2.3