aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/match01/tb_match02.vhdl
blob: 52074709f20b2ab2911f791750c0453e3dcc7e9a (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
entity tb_match02 is
end tb_match02;

library ieee;
use ieee.std_logic_1164.all;

architecture behav of tb_match02 is
  signal a : std_logic_vector(3 downto 0);
  signal z : std_logic;
begin
  dut: entity work.match02
    port map (a, z);

  process
  begin
    a <= "1000";
    wait for 1 ns;
    assert z = '0' severity failure;

    a <= "1010";
    wait for 1 ns;
    assert z = '0' severity failure;

    a <= "0000";
    wait for 1 ns;
    assert z = '1' severity failure;

    a <= "0001";
    wait for 1 ns;
    assert z = '1' severity failure;

    wait;
  end process;
end behav;