Custom Type as VHDL 2008 Generic
<p>I want to create a custom type in my <code>generic</code> section of my <code>entity</code> using VHDL-2008.  However I get an error immediately in Modelsim with this code.  The error is:</p>

<blockquote>
  <p>** Error: C:/Projects/source/My_Mux.vhd(35): near "is": expecting ';' or ')'</p>
</blockquote>

<p>Note that Line 35 is the <code>type t_Array</code> below:</p>

<pre><code>entity My_Mux is
  generic (
    g_MUX_INPUTS : integer := 2;
    type t_Array is array (0 to g_MUX_INPUTS-1) of std_logic_vector(7 downto 0)
    );
  port (
    i_Select   : in std_logic_vector(1 downto 0);
    i_Mux_Data : in t_Array;
    o_Data     : out std_logic_vector(7 downto 0)
    );
end entity My_Mux;

architecture RTL of My_Mux is

begin

  o_Data &lt;= i_Mux_Data(0) when i_Select = "00" else i_Mux_Data(1);

end architecture RTL;
</code></pre>

<p>I looked into creating a special function that I define in my generic portion of my code.  But that requires that I overload the function in the instantiating module, which I really did not want to have to do, it seems needlessly complicated.  If I could create a custom type in the generic it would solve my problem.  Possible using VHDL-2008?</p>