From a5ff910722bbe81d3c8e314732eceb14c72812af Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Tue, 5 Jul 2022 09:01:24 -0400 Subject: Fix issue #2126, add handling of to_ux01 to synthesis --- testsuite/synth/issue2126/test.vhdl | 19 +++++++++++++++++++ testsuite/synth/issue2126/testsuite.sh | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 testsuite/synth/issue2126/test.vhdl create mode 100755 testsuite/synth/issue2126/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/synth/issue2126/test.vhdl b/testsuite/synth/issue2126/test.vhdl new file mode 100644 index 000000000..63de3d0df --- /dev/null +++ b/testsuite/synth/issue2126/test.vhdl @@ -0,0 +1,19 @@ +-- Title : Testcase for to_ux01 on a std_logic +------------------------------------------------------------------------------- + +library ieee; +use ieee.std_logic_1164.all; +entity test is + + port ( + sig_in : in std_logic_vector(1 downto 0); + sig_out : out std_logic; + sig_out_vec : out std_logic_vector(1 downto 0)); +end entity test; + +architecture str of test is + +begin -- architecture str + sig_out <= to_ux01(sig_in(0)) and to_ux01(sig_in(1)); + sig_out_vec <= to_ux01(sig_in); +end architecture str; diff --git a/testsuite/synth/issue2126/testsuite.sh b/testsuite/synth/issue2126/testsuite.sh new file mode 100755 index 000000000..75ca5f68d --- /dev/null +++ b/testsuite/synth/issue2126/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 + +synth_only test + +echo "Test successful" -- cgit v1.2.3