Determine the dimentions of an array using the "range" attribute.

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Visit site
Activity points
18,302
Code:
-- a,b,c,d are entity generics
type some_array is array ( a to b ) of std_logic_vector ( c downto d ) ;
signal my_array : some_array

suppose I want to find the ranges of the depth and width dimentions.
what is the correct syntax to do so?

Code:
width_of_some_array <= 
depth_of_some_array <=
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…