Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > vhdl: wrong index type

Reply
Thread Tools

vhdl: wrong index type

 
 
dancar dancar is offline
Junior Member
Join Date: Sep 2009
Posts: 1
 
      09-21-2009
hello,
I've the following error:
ERROR:HDLParsers:821 ... Wrong index type for framebuf.
here the code:
...
type defbuf is array (399 downto 0) of std_logic_vector (7 downto 0);
type small_int is range 0 to 399 ;
...
process (QCLK)
variable i : small_int:= 0;
begin
if (QCLK = '1' and QCLK'event) THEN
...
i:=i+1;
framebuf(i)<=PIXIN
end if;
...
end process;
Can you help me in order to solve this problem?
Thanks
 
Reply With Quote
 
 
 
 
joris joris is offline
Senior Member
Join Date: Jan 2009
Posts: 152
 
      09-26-2009
maybe
Code:
type small_int is natural range 0 to 399 ;
or
Code:
framebuf(integer(i))<=PIXIN
help?

Just guessing though
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong index type for array? ieee.sucks.all VHDL 0 07-08-2008 02:01 PM
sorting index-15, index-9, index-110 "the human way"? Tomasz Chmielewski Perl Misc 4 03-04-2008 05:01 PM
Index of selection is wrong after setting a new index within Mozilla Stefan Mueller Javascript 7 11-28-2005 05:24 PM
Wrong index type eeh VHDL 4 10-05-2005 08:13 AM
problem with index.html .(page is automatically gettin redirected to index.html) karthikeyavenkat Java 2 03-17-2005 10:01 PM



Advertisments