FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2005, 06:21 PM
Pasacco
Guest
 
Posts: n/a
Default textio error

I am learning using textio library.
I have source code and test bench. Both of them are compiled well.
Test bench looks like below.

-------------------------
....
architecture
....
file AAA : TEXT open READ_MODE is "text.txt";
begin
....
process
begin
...
while NOT (endfile(AAA)) loop -- here occurs error
...
-------------------------

I am using modelsim and met the following error message. It is strange
that it tries to open VHDL file instead of TXT file...and also strange
because there IS a text file in the directory.....

-----------------------------------------------------------------
Fatal: (vsim-7) Failed to open VHDL file "text.txt" in r mode.
# No such file or directory. (errno = ENOENT)
-----------------------------------------------------------------

If someone has this experience, let us know how to solve...

Thankyou

Reply With Quote
  #2 (permalink)  
Old 05-02-2005, 08:14 PM
Ralf Hildebrandt
Guest
 
Posts: n/a
Default Re: textio error

Pasacco wrote:


> -----------------------------------------------------------------
> Fatal: (vsim-7) Failed to open VHDL file "text.txt" in r mode.
> # No such file or directory. (errno = ENOENT)
> -----------------------------------------------------------------


Specify the complete path for the file - not only it's name.

e.g.:
file AAA : TEXT open READ_MODE is "/home/userX/folderY/text.txt";


Ralf
Reply With Quote
  #3 (permalink)  
Old 05-02-2005, 10:21 PM
Alan
Guest
 
Posts: n/a
Default Re: textio error

In message <[email protected]>, Ralf Hildebrandt
<[email protected]> wrote
>Pasacco wrote:
>
>
>> -----------------------------------------------------------------
>> Fatal: (vsim-7) Failed to open VHDL file "text.txt" in r mode.
>> # No such file or directory. (errno = ENOENT)
>> -----------------------------------------------------------------

>
>Specify the complete path for the file - not only it's name.
>
>e.g.:
>file AAA : TEXT open READ_MODE is "/home/userX/folderY/text.txt";
>



Some tools don't like white spaces in the names of files or directory
paths. It is better to always use names like 'my_directory' with an
underscore rather than 'my directory' with a space in the name.

--
Alan
mailto:[email protected]
Reply With Quote
  #4 (permalink)  
Old 05-03-2005, 10:06 AM
Pasacco
Guest
 
Posts: n/a
Default Re: textio error

Complete path name.... now it works

Thankyou very much

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xilinx ISE synthesis error (error:3524 Unexpected end of line.) [email protected] FPGA 0 04-11-2008 11:37 AM
What should I do with std.textio.all of ModelSim Weng Tianxiang FPGA 13 10-27-2006 05:19 AM
Quartus 5.0sp1 -- Error: Unexpected error in JTAG server -- errorcode 33 Tommy Thorn FPGA 1 07-12-2005 08:02 AM
READ/WRITE files using TEXTIO using Quartus John FPGA 1 04-24-2005 08:37 PM
the textio lib and std_logic_textio Pedro Claro VHDL 3 07-28-2003 06:08 PM


All times are GMT +1. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved