Forum Discussion

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

Hide warnings during Modelsim Simulation

Greetings, Is there a nice way to write some code in a do file to hide all the warnings that appear on the transcript window?

Thanks

4 Replies

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

    The modelsim.ini file has a couple of parameters that allow warnings from the libraries to be suppressed, eg.,

    <QUARTUS>/modelsim_ase/modelsim.ini

    Make the file writeable, then edit:

    
    ; Turn off warnings from the std_logic_arith, std_logic_unsigned
    ; and std_logic_signed packages.
    StdArithNoWarnings = 1
    ; Turn off warnings from the IEEE numeric_std and numeric_bit
    ; packages.
    NumericStdNoWarnings = 1
    
    There's a few other flags in there, but these two are all I've ever had to suppress.

    Make modelsim.ini read-only again. This ensures the 'master' copy is clean (projects will create a local copy if they cannot write to the master copy).

    There's also a +nowarn argument to vsim. I recall seeing that set in some of the SOPC .do files for verilog simulation. The argument can be used to suppress numbered warnings, eg., +nowarnTFMPC +nowarn3009.

    Cheers,

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

    Greetings. I checked the .ini file and both the options are marked 1 but I still get a barrage of warnings that show up on my transcript window in Modelsim.

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

    Afaik, if the warnings are not from std_logic_arith/usigned/signed or numeric_std, you cannot turn them off. There is usually a good reason that these warnings are firing - the only way to fix them is to fix the cause of the warnings (unless the coder who wrote the code was a numpty)

    You cant even turn off the ones in the fixed point packages, which are basically the same as the ones in numeric_std.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I still get a barrage of warnings that show up on my transcript window in Modelsim.

    --- Quote End ---

    A few examples of the warnings would help :)

    Cheers,

    Dave