Forum Discussion

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

Error 10054 -- Can't Open Verilog Design File

Hi all,

I'm encountering a simple error when I try to start compilation in Quartus. The error message is as follows:

Error (10054) : Verilog HDL File I/O error at ... : can't open Verilog Design File "C:/..."

where the ... just represents the file name. Alright, so here is the deal, I do not have administrator privileges for my C drive most of the time, so I do not want the project files to be there. I put them there temporarily and recompiled and everything worked fine, but I really need the project files to be in my D drive because of my lack of administrator privileges.

I have searched on the web for a long time about how to change the directory, but have found nothing so far. Does anyone know how to do that in Quartus and Nios?

Thanks,

Joseph

1 Reply

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

    In Quartus, go to the Assignments -> Settings menu. In the category list on the left choose Files. In the dialogue box you will see the list of files that are assigned to the project. This list will likely be a full path to your files including the reference to the C drive. You could remove all of these references and add D drive reference via this dialogue box but that is tedious.

    What I do is add only the top level entity file here with a relative reference. So if the top level file is in the same directory as your project file no path is necessary. If in a sub-directory then add as "subDirectory/topFile.v" if in a parallel directory then "../parallelDirectory/topFile.v"

    Next, go to the Libraries category on the Settings menu and add relative paths to all directories that contain the rest of you verilog source files. You can also add paths to blockDiagram file directories, IP directories or any other source files.

    Now you can move your project anywhere and it will still find its source files by first locating the top entity and then search for source files as they are referenced in the project hierarchy.

    If you find the dialogue box for modifying these settings a bit cumbersome as I do, then you can edit these settings in the project settings files, project.qsf, using a text editor.