svt_exit_timer Class Reference

Inheritance diagram for class svt_exit_timer:

List of all members.


Detailed Description

This class is provides a timer which also acts as a consensus voter which can force simulation exit when the timer value is reached.



Public Member Functions

function void  new ( string suite_name, string inst, string timeout_name, svt_err_check check = null, svt_voter voter, ovm_report_object reporter = null )
function void  start_timer ( real positive_fuse_value, string reason = "", bit zero_is_infinite = 1, bit allow_restart = 0 )

Public Attributes


Member Function Documentation

  function void
 svt_exit_timer::new

 (  string suite_name , string inst , string timeout_name , svt_err_check check = null, svt_voter voter , ovm_report_object reporter = null  ) 


Creates a new instance of this class.

inst - The name of the timer instance, for its logger.

timeout_name - The name associated with the timeout value used with this timer.

check - Provides access to a checker package to track the success/failure of the timer.

voter - Voter which the 'exit' is indicated to.

reporter - An component through which messages are routed

  function void
 svt_exit_timer::start_timer

 (  real positive_fuse_value , string reason = "", bit zero_is_infinite = 1, bit allow_restart = 0  ) 


Start the timer, setting up a timeout based on positive_fuse_value. If timer is already active and allow_restart is 1 then the positive_fuse_value and zero_is_infinite fields are used to update the state of the timer and then a restart is initiated. If timer is already active and allow_restart is 0 then a warning is generated and the timer is not restarted.

positive_fuse_value - The timeout time, interpreted by the do_delay method.

reason - String that describes the reason for the start, and which is used to indicate the start reason in the start messages.

zero_is_infinite - Indicates whether a positive_fuse_value of zero should be interpreted as an immediate (0) or infinite (1) timeout request.

allow_restart - When set to 1, allow a restart if the timer is already active.


 Superseded functions 
 svt_timer :: start_timer 


Member Attribute Documentation