blob: c91d8334d47d28315c0e62d563676ee1bd2fd10a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
library ieee;
use ieee.std_logic_1164.all;
entity uassoc03_sub is
port (i : std_logic_vector;
o : out std_logic_vector);
end uassoc03_sub;
architecture behav of uassoc03_sub is
begin
o <= not i;
end behav;
library ieee;
use ieee.std_logic_1164.all;
entity uassoc03 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 uassoc03;
architecture rtl of uassoc03 is
component uassoc03_sub is
port (i : std_logic_vector;
o : out std_logic_vector);
end component;
signal o1: std_logic_vector(3 downto 0);
signal o2: std_logic_vector(3 downto 0);
begin
dut1: uassoc03_sub
port map (i => i1, o => o1);
dut2: uassoc03_sub
port map (i => i2 (3 downto 0), o => o2);
o <= o1 xor o2;
end rtl;
|