Skip to content

Commit

Permalink
Merge pull request #31 from abs-tudelft/fix-vsim-stdlib-nowarning
Browse files Browse the repository at this point in the history
Fix vsim numeric_std et al. warning suppression option
  • Loading branch information
jvanstraten authored Oct 25, 2019
2 parents 993bc9d + 75f8115 commit 69dd26f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions vhdeps/targets/vsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,18 @@
# Give the command to initialize the simulation.
eval "vsim $flags $lib.$unit"
# Enable or disable library warnings based on preferences.
set StdArithNoWarnings $suppress_warnings
set StdNumNoWarnings $suppress_warnings
set NumericStdNoWarnings $suppress_warnings
# Enable or disable library warnings based on preferences. Note: ModelSim
# is bugged to where it will except the value True for these variables, but
# they will only work when explicitly set to 1.
if {$suppress_warnings} {
set StdArithNoWarnings 1
set StdNumNoWarnings 1
set NumericStdNoWarnings 1
} else {
set StdArithNoWarnings 0
set StdNumNoWarnings 0
set NumericStdNoWarnings 0
}
# Add signals to the waveform if we're not running in batch mode.
if {![batch_mode] && !$fast} {
Expand Down

0 comments on commit 69dd26f

Please sign in to comment.