Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > help in reading a large text file using verilog....

Thread Tools

help in reading a large text file using verilog....

alangs alangs is offline
Junior Member
Join Date: Jul 2010
Posts: 2
I am having a large text file which contains only the pixel values of an i can able to read the pixels using $readmemh system task..... but the prolem is using only 1000 words of memory as below
reg [31:0] Mem [0:999];
initial $readmemh("pixels.txt",Mem);
By this i can get only 1000 pixles from the text file and i will give these pixels to the next module for furthur processing....then i have to read the next 1000 pixels from the text file and put it in the Mem....similarly i want all the pixels to be readed from the txt file with the Mem size as 1000 and give those to the next module for furthur how i can do this plz i will be very thank full to u...plz help me.....
Reply With Quote

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
Reading line by line in a large text file xyz C++ 3 06-09-2008 12:55 PM
reading large text files in reverse - optimization doubts Rajorshi Biswas C Programming 6 09-28-2005 07:10 AM
Reading large text files =?Utf-8?B?SHV0dHk=?= ASP .Net 1 09-27-2005 06:33 PM
Reading a large number of text files into an array Matthew Crema C Programming 4 04-27-2005 09:02 PM
reading the DB vs. reading a text file...performance preference? Darrel ASP .Net 3 11-11-2004 02:27 PM