You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have testbenches that use a transcript file. But I also like specific messages to also display on std.textio.OUTPUT. I do this in the testbench by turning on/off the mirror around specific messages, but for alerts inside the scoreboard I have no control over this. When an error/failure occurs and Error count is reached, ReportAlert occurs inside the scoreboard and cannot be mirrored to console.
I use the log to log everything - all scoreboard matches as well as errors. It would be good to have only the errors pop out to console.
The text was updated successfully, but these errors were encountered:
As a note to this, when I run tests on jenkins, I have to have a post run TCL script to pull the ERRORs out of the log into the console to allow them to the be sent to the log parser to allow a job to be set to PASS or FAIL.
As an aside, the ReportAlerts is called from within the AlertLogPackage when an AlertStopCount is reached, so I cannot mirror only this to console for quickly viewing the test status from the Jenkins console without my TCL script above.
This is the TCL I use (which can be quite slow with large OSVVM log files):
proc promote_errors { log_file } {
set f [open $log_file r]
set file_data [read $f]
close $f
set data [split $file_data "\n"]
set printrest 0
foreach line $data {
if { [regexp {DONE} $line] } {set printrest 1 }
if { [regexp {ERROR} $line] || [regexp {FAILURE} $line] || $printrest == 1 } { puts $line }
}
}
I currently have testbenches that use a transcript file. But I also like specific messages to also display on std.textio.OUTPUT. I do this in the testbench by turning on/off the mirror around specific messages, but for alerts inside the scoreboard I have no control over this. When an error/failure occurs and Error count is reached, ReportAlert occurs inside the scoreboard and cannot be mirrored to console.
I use the log to log everything - all scoreboard matches as well as errors. It would be good to have only the errors pop out to console.
The text was updated successfully, but these errors were encountered: