Questasim/Modelsim VHDL warnings

When using Questasim/Modelsim there is a easy trick to get rid of the initial warnings like

** Warning: NUMERIC_STD.TO_INTEGER: metavalue detected, returning 0. Time:0 fs
** Warning: There is an ‘U’|’X’|’W’|’Z’|’-‘ in an arithmetic operand, the result will be ‘X'(es). Time:0 fs
** Warning: CONV_INTEGER: There is an ‘U’|’X’|’W’|’Z’|’-‘ in an arithmetic operand. Time:0 fs

make a file called shutup.do

set StdArithNoWarnings 1
set StdNumNoWarnings 1
set NumericStdNoWarnings 1
run 0 ns;
set StdArithNoWarnings 0
set StdNumNoWarnings 0
set NumericStdNoWarnings 0
# Continue script

Call the file with do shutup.do

  1. I’ve used this trick in the past to hide warnings at time 0, but enable them after that:

    # Supress vsim warnings about indices being X or outside of range at time 0.
    suppress 8233
    when -fast {$now == 1ns} {
      suppress -clear 8233
    }
    
  1. No trackbacks yet.

Leave a comment