Inheritance diagram for class svt_exit_timer:
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, vmm_voter voter, vmm_log log = null ) |
| function void | start_timer ( real positive_fuse_value, string reason = "", bit zero_is_infinite = 1, bit allow_restart = 0 ) |
Public Attributes | |
|
||
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. log - An vmm_log object reference used to replace the default internal logger. |
|
||||
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. | ||||
|