aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/iassoc01/tb_iassoc02.vhdl
blob: 36cc2eba0261e55799f1e0f3457e5d54cf9439e8 (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
entity tb_iassoc02 is
end tb_iassoc02;

library ieee;
use ieee.std_logic_1164.all;

architecture behav of tb_iassoc02 is
  signal a : natural;
  signal b : natural;
  signal v : natural;
begin
  dut: entity work.iassoc02
    port map (v, a, b);

  process
  begin
    v <= 5;
    wait for 1 ns;
    assert a = 6 severity failure;
    assert b = 7 severity failure;

    v <= 203;
    wait for 1 ns;
    assert a = 204 severity failure;
    assert b = 205 severity failure;

    wait;
  end process;
end behav;