Array initialisation in vhdl

Joined
Apr 27, 2008
Messages
1
Reaction score
0
Hi friends....

i wanted to know whether we can initialise a vhdl array type variable or signal as shown below...
===================================
.....
type example is array ( 1 to 10, 1 to 10 ) of any type
signal test: example;
....
....
for i is 1 to 10 loop
for j is 1 to 10 loop
test(i,j) <= "same 'array type' element"
end loop
end loop

====================================

when i tried in ISE 8.2i i got an error as test(i) is invalid array index

since im a beginner in VHDL ...u guys plz throw some light on this concept :veryprou:
 
Last edited:

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

Similar Threads

Illegal sequential statement (VHDL) 0
Array VHDL 3
Implementation a SVM ( SVPWM) in FPGA with VHDL 0
Array initialisation - general questions 1
Multiplication VHDL 4
pls help me ; vhdl; 0
erreur VHDL 3
code vhdl 1

Members online

Forum statistics

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

Latest Threads

Top