H
hssig
Hi,
I am defining a function and a constant in the following manner:
package pkg_test is
function f_calc( inp: integer) return integer;
constant cVAL : integer;
end package pkg_test;
package body pkg_test is
function f_calc( inp: integer) return integer is
begin
...
end function f_calc;
constant cVAL : integer := f_calc(16);
type type_sig is array (natural range <>) of std_logic_vector(cVAL
downto 0);
end package body pkg_test;
The conflict: If I want to make "type_sig" visible for my component,
the type has to be defined in the package and not in the package
body . How can I find a remedy ?
Thank you, cheers
hssig
I am defining a function and a constant in the following manner:
package pkg_test is
function f_calc( inp: integer) return integer;
constant cVAL : integer;
end package pkg_test;
package body pkg_test is
function f_calc( inp: integer) return integer is
begin
...
end function f_calc;
constant cVAL : integer := f_calc(16);
type type_sig is array (natural range <>) of std_logic_vector(cVAL
downto 0);
end package body pkg_test;
The conflict: If I want to make "type_sig" visible for my component,
the type has to be defined in the package and not in the package
body . How can I find a remedy ?
Thank you, cheers
hssig