aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/dispvhdl01/tb_vhd01.vhdl
blob: 6f2e1ec9bb906942eb8ccf2bd6c98e357985e5c6 (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
entity tb_vhd01 is
end tb_vhd01;

library ieee;
use ieee.std_logic_1164.all;
use work.pkg.all;

architecture behav of tb_vhd01 is
  signal i1, o1 : std_logic_vector(1 to 1);
begin
  dut: entity work.vhd01
    port map (i1 => i1, o1 => o1);

  process
  begin
    i1 <= "1";
    wait for 1 ns;
    assert o1 = "1" severity failure;

    i1 <= "0";
    wait for 1 ns;
    assert o1 = "0" severity failure;

    wait;
  end process;
end behav;