Hi
I have two topics concerning the AlertLogPkg:
1) Only cosmetical: in the procedure AffirmIfEqual, the default String before Expected is “?= Expected” and not “/= Expected” which would match the documentation better (of course I could change that myself)
2) More serious: I used the SetAlertStopCount procedure to stop the testbench after one error within the model:
SetAlertStopCount(ERROR, 1); — stop after 1 alert error
This causes QuestaSim (2019.2) to crash:
# Current time Fri Nov 27 10:01:46 2020
# Program = vsim
# Id = “2019.2”
# Version = “2019.04”
# Date = “Apr 16 2019”
# Platform = “linux_x86_64”
# Signature = a9dece1699e369c798442ff51861b880
# …
# 2 0x00007feff3f01260: ‘/home/adm/stefan.brantschen/svn/2017_03_topvox2020/design_digital/2_hdldesigner/topvox_osvvm_tb_lib/hdl/model_spi_sim.vhd:56’
# 3 …
# 5 0x00007feff03b6578: ‘/home/adm/stefan.brantschen/svn/2017_03_topvox2020/design_digital/2_hdldesigner/topvox_osvvm_tb_lib/hdl/tb_topvox_struct.vhd:568’
# 6 …
# End of Stack Trace
model_spi_sim.vhd:56 states: CONSTANT c_inst_name : string := PathTail(model_spi’PATH_NAME);
Even worse: I declared
SetAlertStopCount(ERROR, 1); — stop after 1 alert error
in the test_ctrl-block, so it applies for all models:
The simulator stopped correctly after one error, but crashed when restarting the sim.
What do I wrong?