Forum Discussion
If code in File2.sv is needed for the design, then it needs to be compiled. I'm not sure what you're trying to accomplish. You can select what files are part of the project from Project menu -> Add/remove files in project.
#iwork4intel
If File2.sv is included in the Project tree, then it will be compiled when File1.sv is compiled (because File1.sv includes File2.sv) and then it will also be individually compiled again as File2.sv by itself which will fail.
I am trying to break down a big module into 2 files for easier navigation. In my case, my module has 2 state machines. To make it easier to work on, I have one state machine inside File2.sv and the other inside File1.sv (they are not really called File1 and Files - these are just example names).
At the moment, File2.sv is not part of my Project tree (even though it is in the same file folder/directory) and it compiles fine as part of File1.sv
I would like it to also appear on the Project tree so I can easily open it if I want to.
Having said this, I have started to use Notepad++ lately for both Modelsim and Quartus since it provides time-saving features a software developer expects such as keyboard macros.