Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17054 Discussions

MOdelSim doesn't support multiple modules in single .v file?

Altera_Forum
Honored Contributor II
3,616 Views

I get an error trying to load design, when using single .v file with all modules in it, if I have individual files for each module it happy, does that sound right? any way around that? 

thanks
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
2,364 Views

Having multiple modules should work I know in the past I've had multiple modules in the same file. 

 

What are the errors being reported when you are compiling?
0 Kudos
Altera_Forum
Honored Contributor II
2,364 Views

That cannot be correct. Look in the Quartus install directory 

 

C:\software\altera\12.1sp1_free\quartus\eda\sim_lib 

 

all of these files have multiple modules, and they can all be compiled by Modelsim-ASE and Modelsim-SE. 

 

I suspect you have another issue. Look at some of these Verilog files and see if they have something different in them relative to your code, eg., perhaps your code is missing "endmodule". 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
2,364 Views

Ragazzi ho lo stesso problema : mi da questo errore, potreste darmi una mano gentilmente ?Grazie anticipatamente per la risposta. 

 

 

 

Determining the location of the ModelSim executable...Using: C:\altera\13.1\modelsim_ase\win32aloem 

 

To specify a ModelSim executable directory, select: Tools -> Options -> EDA Tool Options 

Note: if both ModelSim-Altera and ModelSim executables are available, ModelSim-Altera will be used. 

 

**** Generating the ModelSim Testbench **** 

 

quartus_eda --gen_testbench --check_outputs=on --tool=modelsim_oem --format=verilog boh -c boh --vector_source=C:/Users/Luca/Desktop/progetti con il quartus 13.1(ultima versione)/Waveform.vwf --testbench_file=C:/Users/Luca/Desktop/progetti con il quartus 13.1(ultima versione)/simulation/qsim/Waveform.vwf.vt 

 

Error (23028): Unknown argument "con". Refer to --help for legal arguments. 

 

 

Usage: 

------ 

 

 

quartus_eda [-h | --help[=] | -v] 

quartus_eda [] 

quartus_eda -t  

Error.  

 

 

 

 

0 Kudos
Altera_Forum
Honored Contributor II
2,364 Views

Tcl works with strings, and so the argument should more correctly be: 

 

--vector_source={C:/Users/Luca/Desktop/progetti con il quartus 13.1(ultima versione)/Waveform.vwf} 

 

or 

 

--vector_source="C:/Users/Luca/Desktop/progetti con il quartus 13.1(ultima versione)/Waveform.vwf" 

 

Since this path looks like it was generated by Quartus, you have two options; 

 

1. Manually start Modelsim and run the simulation 

 

2. Move your project to a path without spaces 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
2,364 Views

Thank you for the response, knowing it should work, and looking at it fresh, i now do see my error, a mis-named module. So all is good. 

thanks
0 Kudos
Reply