svt_logger Class Reference

Inheritance diagram for class svt_logger:

List of all members.


Detailed Description

Utility class used to provide logging assistance independent of UVM/VMM testbench technology.



Public Member Functions

function void  buffer_in_change ( string port_number, string port_value )
function void  buffer_out_change ( string port_number, string port_value )
function bit  get_logging_on ( )
function int  get_log_file ( )
function void  log_time ( )
function void  new ( )
function void  open_log ( string inst )
function void  start_logging ( string inst, string name, string suite, bit is_called_from_hdl )

Public Attributes


Protected Attributes

protected string  in_port_numbers = ""; 
protected string  in_port_values = ""; 
protected string  out_port_numbers = ""; 
protected string  out_port_values = ""; 


Member Function Documentation

  function void
 svt_logger::buffer_in_change

 (  string port_number , string port_value  ) 


Buffer the changes to an input port, this task will only be called if logging is on, so there is no need to check if logging is on.

port_number - Port Number

port_value - What is the new value of the port

  function void
 svt_logger::buffer_out_change

 (  string port_number , string port_value  ) 


Buffer the changes to an output port, this task will only be called if logging is on, so there is no need to check if logging is on.

port_number - Port Number

port_value - What is the new value of the port

  function bit
 svt_logger::get_logging_on

 (   ) 

  function int
 svt_logger::get_log_file

 (   ) 

  function void
 svt_logger::log_time

 (   ) 

  function void
 svt_logger::new

 (   ) 


CONSTRUCTOR: Creates a new instance of the svt_logger class.

  function void
 svt_logger::open_log

 (  string inst  ) 

  function void
 svt_logger::start_logging

 (  string inst , string name , string suite , bit is_called_from_hdl  ) 


Member Attribute Documentation

 protected string  attribute
 svt_logger::in_port_numbers = ""

 protected string  attribute
 svt_logger::in_port_values = ""

 protected string  attribute
 svt_logger::out_port_numbers = ""

 protected string  attribute
 svt_logger::out_port_values = ""