Forum Discussion

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

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

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

5 Replies

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

    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?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

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

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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