Forum Discussion
Altera_Forum
Honored Contributor
14 years agoArrays-VHDL
1.In arrays(of real type ) how are we supposed to find the maximum value index in the array?I think A'HIGH is something different which gives the highest subscript of the array.What's the difference ...
Altera_Forum
Honored Contributor
14 years ago1. It depends how you declare the array:
signal a: some_array_t(0 to 7); signal b : some_array_t(7 downto 0); a'high = 7; a'right = 7; b'high = 7; b'high = 0; does this makes sense? 2. you'll have to write a function to do it NB - Real type is not synthesisable - so I assume this is all for testbenching.