Guest
I am attempting to take a 2 dimentional array, and port map it to a
package to do a sort operation, and finally have it output the sorted
array. Here is the array definition within my main module architecture.
type SORT_HI_ARRAY is array (1 to 9) of std_logic_vector(10 downto 0) ;
signal SORT_ARRAY : SORT_HI_ARRAY ;
Instead of repeating the sort routine multiple times within my main
vhdl module (for multiple sorts), I would like to pass on (port map)
the array to another entity or package to do the work, and receive back
the sorted array. I can not use a function to do the sort within my
main module, since a function can only have one output.
If it can be done, my module will pass the array and a Sort_Now signal
to an external package or entity, and get back the sorted array.
Thanks ahead of time.
package to do a sort operation, and finally have it output the sorted
array. Here is the array definition within my main module architecture.
type SORT_HI_ARRAY is array (1 to 9) of std_logic_vector(10 downto 0) ;
signal SORT_ARRAY : SORT_HI_ARRAY ;
Instead of repeating the sort routine multiple times within my main
vhdl module (for multiple sorts), I would like to pass on (port map)
the array to another entity or package to do the work, and receive back
the sorted array. I can not use a function to do the sort within my
main module, since a function can only have one output.
If it can be done, my module will pass the array and a Sort_Now signal
to an external package or entity, and get back the sorted array.
Thanks ahead of time.