Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Read some hex value in a file for test bench

 
Thread Tools Search this Thread
Old 09-03-2005, 09:08 AM   #1
Default Read some hex value in a file for test bench


Hi,

I have a file which contain a lot of hex values 0x47 0x20 0x57 . . . .

I mus program a testbench which read these values to inject them in a
vhdl module (to validate it).

I use the textio package without any good results.

It is the fist time that i use it and have some difficulties.

Can you help me ?

I thank you a lot !

Teten

-- my source code which may that (no correct functionning ...)

PROCESS
FILE fichier : text IS IN fichier_TS_in;

VARIABLE ligne : line;
VARIABLE data_int : STD_LOGIC_VECTOR(7 downto 0);
VARIABLE good: boolean; -- Status of the read operations
BEGIN


WHILE NOT ENDFILE(fichier) LOOP

readline(fichier, ligne); -- ouverture du fichier ts
hread(ligne,data_int,good); -- Read the B argumen
WHILE good LOOP
WAIT UNTIL rising_edge(CLK_TS); -- pour synchroniser
DATA_TS <= data_int;
hread(ligne,data_int,good);
END LOOP;
END LOOP;
END PROCESS;



Teten
  Reply With Quote
Old 09-03-2005, 05:40 PM   #2
Ajeetha
 
Posts: n/a
Default Re: Read some hex value in a file for test bench
Hi,
What exactly is the problem here? Do you get wrong values being read
in? Do you see a crash? Please explain and if you like, send me a
working code (with sample text file) via email @ gmail.com @ ajeetha.

Good Luck
www.noveldv.com



Ajeetha
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help .... How to read a log file using c++... EngSara Software 0 05-17-2008 06:10 PM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 07:34 PM
Re: Ripping DVDs. Please answer the attached question. - Question.txt Stan Brown DVD Video 19 02-09-2005 11:19 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 PM
Pioneer A05 Problems Bill Stock DVD Video 8 11-28-2003 05:03 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46