3D vector

K

krzyg

Greetings!
Is there any way to create 3-D vectors?
I'd like to have a vector (let's say 4-bit vector) to which I could
refer in the following way:

vector(0)(0) <= "0110";
vector(0)(1) <= "0001";

etc.
 
R

Ralf Hildebrandt

krzyg said:
Is there any way to create 3-D vectors?

Define a vector as type (1D)
Define an array consisting out of elements from the vector type. (2D)
Define an array consisting out of elements from the 2D-array type. (3D)
... go on...

Note that for some (older) synthesis tools even 2D-arrays are not
synthesizable -> Break everything down to a vector.

Ralf
 
K

krzyg

Ralf Hildebrandt napisa³(a):
Define a vector as type (1D)
Define an array consisting out of elements from the vector type. (2D)
Define an array consisting out of elements from the 2D-array type. (3D)
.. go on...

Note that for some (older) synthesis tools even 2D-arrays are not
synthesizable -> Break everything down to a vector.

Ralf

Thanks!
I hope I won't be forced to break it down - the size of the vector is
determined by generic values (parameters) not by constants (flexibility
matter).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top