Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

How to open a file in read mode without any error?/this was the error I was getting

** Error: (vsim-7) Failed to open VHDL file "C:/altera/13.0sp1/work/stimulus.txt" in rb mode.# # No such file or directory. (errno = ENOENT)

I tried everything I could do like change the paths for directories and changed the name of the given text files please somebody help:cry::o

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Happy new year / (fr) Bonne et heureuse année 2014

    I guess you are using ModelSim.

    Do you try to open stimulus.txt in ModelSim or does one of your VHDL files have an instruction to open situlus.txt ?

    I don't know "rb mode" : raw binary mode ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Check the current directory using "pwd" command and if the "stimulus.txt" is in the same directory.