aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue620/test_tb.vhd
blob: 6be1370097e6ccedfe3d33c6014fbfe9650e89fe (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
library ieee;
use ieee.std_logic_1164.all;

entity test_tb is
  package inst is new work.type_declaration_pkg generic map(2);
                  use inst.all;

  package userInst is new work.type_user_pkg generic map(inst.myType, inst.unity);
  use userInst.all;                                    
end entity test_tb;

architecture behavioral of test_tb is
  signal thisThing : inst.myType := (others => 0);
  signal thatThing : inst.myType;
  signal clk : std_ulogic := '0';
begin
  process
  begin
    for i in 1 to 5 loop
      wait for 5 ns;
      clk <= '0';
      wait for 5 ns;
      clk <= '1';
    end loop;
    wait;
  end process;
  process
  begin
    unity_proc(clk, thisThing, thatThing);
  end process;
end architecture behavioral;