aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug0110/tb4.vhdl
blob: 54b9b8a622dbc16b47e598759c48a6612eac57bd (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
package pkg4 is
  type my_arr is array (1 to 2) of bit_vector (7 downto 0);
end pkg4;

use work.pkg4.all;

entity ent4 is
  port (v : out my_arr;
        b : in bit);
end ent4;

architecture behav of ent4 is
begin
  v <= (others => (others => b));
end behav;

entity top4 is
end top4;

use work.pkg4.all;
architecture behav of top4 is
  signal s : bit_vector (7 downto 0);
  signal b : bit;
begin
  dut : entity work.ent4
    port map (
      v(1)(3 downto 2) => s (3 downto 2),
      v(2)(7 downto 6) => s (7 downto 6),
      b => b);
  b <= '0';
end behav;