Skip to content

Commit 2809769

Browse files
authored
Merge branch 'master' into fix-coloring-error
2 parents 97502cb + 69dd26f commit 2809769

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

vhdeps/targets/vsim.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,18 @@
267267
# Give the command to initialize the simulation.
268268
eval "vsim $flags $lib.$unit"
269269
270-
# Enable or disable library warnings based on preferences.
271-
set StdArithNoWarnings $suppress_warnings
272-
set StdNumNoWarnings $suppress_warnings
273-
set NumericStdNoWarnings $suppress_warnings
270+
# Enable or disable library warnings based on preferences. Note: ModelSim
271+
# is bugged to where it will except the value True for these variables, but
272+
# they will only work when explicitly set to 1.
273+
if {$suppress_warnings} {
274+
set StdArithNoWarnings 1
275+
set StdNumNoWarnings 1
276+
set NumericStdNoWarnings 1
277+
} else {
278+
set StdArithNoWarnings 0
279+
set StdNumNoWarnings 0
280+
set NumericStdNoWarnings 0
281+
}
274282
275283
# Add signals to the waveform if we're not running in batch mode.
276284
if {![batch_mode] && !$fast} {

0 commit comments

Comments
 (0)