viveks2585
Newbie level 6
Hi,
This is a UVM code which shows some display statements.
if ( fatal_count > 0 || error_count > 0 )
$display( "*** %s SIMULATION FAILED %s ***",
white_chars_on_red, reset_color );
else if ( warning_count > 0 )
$display( "*** %s SIMULATION PASSED (warnings=%0d) %s ***",
black_chars_on_yellow, warning_count, reset_color );
else
$display( "*** %s SIMULATION PASSED %s ***",
black_chars_on_green, reset_color );
First question is how does this make the log file to become coloured for a particular work and secondly how does this work.
Thanks,
Vivek.S
This is a UVM code which shows some display statements.
if ( fatal_count > 0 || error_count > 0 )
$display( "*** %s SIMULATION FAILED %s ***",
white_chars_on_red, reset_color );
else if ( warning_count > 0 )
$display( "*** %s SIMULATION PASSED (warnings=%0d) %s ***",
black_chars_on_yellow, warning_count, reset_color );
else
$display( "*** %s SIMULATION PASSED %s ***",
black_chars_on_green, reset_color );
First question is how does this make the log file to become coloured for a particular work and secondly how does this work.
Thanks,
Vivek.S