I'm sure it can be done, but getting stuck in the type naming.
VHDL function = function function_name (parameters : type) return type is
*parameters* = a label for an input parameter to the function.
*type* = the type of the parameter, like std_logic, std_logic_vector, string or other.
VHDL array = type type_name is array (range) of element_type
*range* = The range of elements the array is going to occupy.
*element_type* = The type of each element in the array. "type" is like the type discussed for the function.
An array defines its own type.
How to get it assigned as type of a parameter to the function?
When an array is used in the function, how to assign it as return value of the function?
Can somebody provide an or some examples?
Thanks in advance.
std_logic_vectoris an array.