viveks2585
Newbie level 6
- Joined
- Feb 1, 2013
- Messages
- 12
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- India
- Activity points
- 1,355
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