how to declare 2D vector of type unsigned?

Status
Not open for further replies.

fahim1

Member level 4
Joined
Jun 4, 2015
Messages
75
Helped
2
Reputation
4
Reaction score
2
Trophy points
8
Visit site
Activity points
517
hi
can we declare 2D vector of type unsigned?how?
tnx
 

signal some_vector : unsigned ( 7 downto 0 ) ; -- ( 7 downto 0 ) is just an example
 

for a 2d vector:

Code:
type my_array_t is array(natural range <>, natural range <>) of unsigned(7 downto 0);
signal my_array : my_array_t(1 downto 0, 10000 downto 623);
 
Reactions: fahim1

    fahim1

    Points: 2
    Helpful Answer Positive Rating
A vector is a set of single bits (my example):
xxxxxxxx

An array is a set of vectors of the same length (TrickyDicky's example)
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx

Which one are you asking about?
 
Reactions: fahim1

    fahim1

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…