Reply To: All AffirmIf Pass, but OSVVM HTML Report Returns NOCHECKS

Why OSVVM™? Forums OSVVM All AffirmIf Pass, but OSVVM HTML Report Returns NOCHECKS Reply To: All AffirmIf Pass, but OSVVM HTML Report Returns NOCHECKS

#2746
Jim Lewis
Member

One final thing to try. If you like the Alert/AffirmIf printing, you might also like the log printing better than the vhdl Report statement. In the “Stim” process you could change these to logs:

   log("Number of simulation cycles = " & to_string(nCycles));
    log("Coverage holes: " & to_string(CountCovHoles(cp_A_B)));

Logs have levels. These are level ALWAYS, which like report always print. You could give them a level and make them print only when enabled. But here ALWAYS is probably appropriate.

You could also make it a requirement that the Coverage holes is zero by doing the replacing the log for CountCovHoles with:

AffirmIfEqual(CountCovHoles(cp_A_B), 0, "Coverage holes") ;

AffirmIfEqual is a short hand for what you were doing with AffirmIf. Your AffirmIf could be updated as follows with AffirmIfEqual. This will add the word “Actual” before the first value, but otherwise, it is the same as your output.

AffirmIfEqual(A_less_B, expected_less, "A_less_B");