blob: 5f4bec6645c3b1be71023e900872392c0240c5ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
entity tb_uassoc02 is
end tb_uassoc02;
library ieee;
use ieee.std_logic_1164.all;
architecture behav of tb_uassoc02 is
signal i1 : std_logic_vector(3 downto 0);
signal i2 : std_logic_vector(7 downto 0);
signal o : std_logic_vector(3 downto 0);
begin
dut: entity work.uassoc02
port map (i1, i2, o);
process
begin
i1 <= "1100";
i2 <= b"1010_1010";
wait for 1 ns;
assert o = "0110" severity failure;
wait;
end process;
end behav;
|