Multiple For Loops?

P

pinod01

To all,

I've been struggling to find out whether it is possible to create
multiple for loops (actually a two-level version) in VHDL properly that
is synthesizable? I don't really have any good examples and would
appreciate anyone giving me one - specifically if you're trying to
access elements from a multi-dimensional array. I'd like to inplement
the following:

for I in 0 to 3 loop
for J in 0 to 3 loop
Z(I,J) <= A(I,J);
end loop;
end loop;

Is this possible?

Cheers,
Pino
 
J

john Doef

(e-mail address removed) a écrit :
To all,

I've been struggling to find out whether it is possible to create
multiple for loops (actually a two-level version) in VHDL properly that
is synthesizable? I don't really have any good examples and would
appreciate anyone giving me one - specifically if you're trying to
access elements from a multi-dimensional array. I'd like to inplement
the following:

for I in 0 to 3 loop
for J in 0 to 3 loop
Z(I,J) <= A(I,J);
end loop;
end loop;

Is this possible?
Yes, it should be.
BTW, Z <= A is better if 0 to 3 are the bounds.

JD.
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top