aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/insert01/tb_insert01.vhdl
blob: 276998541bfa0e896d71f3c225479848497efcf7 (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_insert01 is
end tb_insert01;

library ieee;
use ieee.std_logic_1164.all;

architecture behav of tb_insert01 is
  signal a : std_logic_vector (3 downto 0);
  signal b : std_logic;
  signal o0, o1, o2, o3 : std_logic_vector (3 downto 0);
begin
  dut: entity work.insert01
    port map (a, b, o0, o1, o2, o3);

  process
  begin
    a <= "0111";
    b <= '0';
    wait for 1 ns;
    assert o0 = "0110" severity failure;
    assert o1 = "0101" severity failure;
    assert o2 = "0011" severity failure;
    assert o3 = "0111" severity failure;
    wait;
  end process;
end behav;