P
Pankaj
Guest
Anyone know how to specify default value to a variable of
unconstrained type
INSIDE a VHDL procedure ?
For example,
type t_HEADER_LENGTH_array is array (natural range<> of integer ; --
unbounded array of integers
procedure provision_EHI_RAM(
variable headerLength : t_HEADER_LENGTH_array (0 to
ci_NUMBERofHEADERS-1) := (14,2);
....)
compiles with error:
** Error: .\rtl\gbe_wan_tb_defn_pkg.vhd(2361): Parameter default
values do not conform between declarations in package header an
d body: 'headerlength'.
Thanks in advance !
Pankaj
unconstrained type
INSIDE a VHDL procedure ?
For example,
type t_HEADER_LENGTH_array is array (natural range<> of integer ; --
unbounded array of integers
procedure provision_EHI_RAM(
variable headerLength : t_HEADER_LENGTH_array (0 to
ci_NUMBERofHEADERS-1) := (14,2);
....)
compiles with error:
** Error: .\rtl\gbe_wan_tb_defn_pkg.vhd(2361): Parameter default
values do not conform between declarations in package header an
d body: 'headerlength'.
Thanks in advance !
Pankaj