From 4b97bbb1830f10ec17e07c5d312e35a83019a9ce Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 11 Jan 2022 19:39:05 +0100 Subject: testsuite/synth: add a test for #1945 --- testsuite/synth/issue1945/tb_alias01.vhdl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testsuite/synth/issue1945/tb_alias01.vhdl (limited to 'testsuite/synth/issue1945/tb_alias01.vhdl') diff --git a/testsuite/synth/issue1945/tb_alias01.vhdl b/testsuite/synth/issue1945/tb_alias01.vhdl new file mode 100644 index 000000000..905a67a48 --- /dev/null +++ b/testsuite/synth/issue1945/tb_alias01.vhdl @@ -0,0 +1,26 @@ +entity tb_alias01 is +end tb_alias01; + +library ieee; +use ieee.std_logic_1164.all; + +architecture behav of tb_alias01 is + signal i : std_logic_vector(7 downto 0); + signal o : std_logic; +begin + dut: entity work.alias01 + port map (i, o); + + process + begin + i <= "11000011"; + wait for 1 ns; + assert o = '1' severity failure; + + i <= "11100011"; + wait for 1 ns; + assert o = '0' severity failure; + + wait; + end process; +end behav; -- cgit v1.2.3