aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/uassoc01/tb_uassoc03.vhdl
blob: 8c9733a647af14c2a51b9062826302f6ac959fd1 (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_uassoc03 is
end tb_uassoc03;

library ieee;
use ieee.std_logic_1164.all;

architecture behav of tb_uassoc03 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.uassoc03
    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;