![]() |
|
|
|
#1 |
|
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 Pasacco |
|
|
|
|
#2 |
|
Posts: n/a
|
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 Ralf Hildebrandt |
|
|
|
#3 |
|
Posts: n/a
|
In message <>, Ralf Hildebrandt
<Ralf-> 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 private.php?do=newpm&u= Alan |
|
|
|
#4 |
|
Posts: n/a
|
Complete path name.... now it works
Thankyou very much Pasacco |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help on Modelsim VHDL syntax? ASAP:) | kaji | General Help Related Topics | 0 | 03-14-2007 10:43 PM |
| Need help on a Modelsim VHDL Syntax? ASAP:) | kaji | Software | 0 | 03-14-2007 10:43 PM |
| Need Help on a Modelsim VHDL Syntax....ASAP:) | kaji | Hardware | 0 | 03-14-2007 10:41 PM |
| Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.Glob | rasmita | General Help Related Topics | 0 | 09-05-2006 05:49 AM |
| Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.Glob | rasmita | General Help Related Topics | 0 | 09-05-2006 05:46 AM |