File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 267
267
# Give the command to initialize the simulation.
268
268
eval "vsim $flags $lib.$unit"
269
269
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
+ }
274
282
275
283
# Add signals to the waveform if we're not running in batch mode.
276
284
if {![batch_mode] && !$fast} {
You can’t perform that action at this time.
0 commit comments