aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/uassoc01/uassoc01.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/uassoc01/uassoc01.vhdl')
-rw-r--r--testsuite/synth/uassoc01/uassoc01.vhdl34
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/synth/uassoc01/uassoc01.vhdl b/testsuite/synth/uassoc01/uassoc01.vhdl
new file mode 100644
index 000000000..d9ec2b354
--- /dev/null
+++ b/testsuite/synth/uassoc01/uassoc01.vhdl
@@ -0,0 +1,34 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity uassoc01_sub is
+ port (i : std_logic_vector;
+ o : out std_logic_vector);
+end uassoc01_sub;
+
+architecture behav of uassoc01_sub is
+begin
+ o <= not i;
+end behav;
+
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity uassoc01 is
+ port (i1 : std_logic_vector(3 downto 0);
+ i2 : std_logic_vector(7 downto 0);
+ o : out std_logic_vector(3 downto 0));
+end uassoc01;
+
+architecture rtl of uassoc01 is
+ signal o1: std_logic_vector(3 downto 0);
+ signal o2: std_logic_vector(7 downto 0);
+begin
+ dut1: entity work.uassoc01_sub
+ port map (i => i1, o => o1);
+
+ dut2: entity work.uassoc01_sub
+ port map (i => i2, o => o2);
+
+ o <= o1 xor o2 (3 downto 0);
+end rtl;