M
mamu
I want to make a lookup table where each entry in the table is record
type. I can define the types but I can't figure out a way to set the
(init) values in the declaration of a constant of that type I just
defined.
package altera_profile_pkg is
type profile_record_type is record
C_NUMBER_OF_SAMPLES : natural range 1 to 15000;
end record profile_record_type;
type lookup_table_type is array (natural range <>) of
profile_record_type;
constant profiles_table : lookup_table_type(0 to 15) := <what goes
here?>
end package altera_profile_pkg;
type. I can define the types but I can't figure out a way to set the
(init) values in the declaration of a constant of that type I just
defined.
package altera_profile_pkg is
type profile_record_type is record
C_NUMBER_OF_SAMPLES : natural range 1 to 15000;
end record profile_record_type;
type lookup_table_type is array (natural range <>) of
profile_record_type;
constant profiles_table : lookup_table_type(0 to 15) := <what goes
here?>
end package altera_profile_pkg;