aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2166/mempkgreproducer4.vhdl
blob: 90f98cbb3c82b84cb1968523c4099394e9250713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
entity MemPkgReproducer4 is
end;

architecture behav of MemPkgReproducer4 is
  function InitMemoryBaseType(Size : integer) return integer_vector is
  begin
    return (1 to Size => 0);
  end InitMemoryBaseType;
  subtype MemoryBaseType is integer_vector ;
  type MemBlockType      is array (integer range <>) of MemoryBaseType ;
  type MemBlockPtrType   is access MemBlockType ;
begin
  process
    variable MemArr : MemBlockPtrType;
    variable BlockWidth : natural;
  begin
    BlockWidth := 4;
    MemArr := new MemBlockType'( 0 to BlockWidth - 1 => (0 to 31 => -1));
--    MemArr(0 to BlockWidth-1) :=
--      (0 to BlockWidth-1 => (0 to 31 => 0))  ;
    wait;
  end process;
end;