svt_env Class Reference

Inheritance diagram for class svt_env:

List of all members.


Detailed Description

Class that provides the basic infrastructure common to all SVT ENV objects.



Public Member Functions

function void  build ( )
function void  connect ( )
function void  display_checked_out_features ( )
function void  get_cfg ( ref svt_configuration cfg )
function string  get_suite_name ( )
function void  new ( string name = "", ovm_component parent = null, string suite_name = "" )
function void  reconfigure ( svt_configuration cfg )
function void  report ( )
task   run ( )

Public Attributes

svt_err_check  err_check = null; 
svt_event_pool  event_pool 
int  intermediate_report = 1; 
ovm_report_object  reporter = this; 

Protected Member Functions

function void  change_dynamic_cfg ( svt_configuration cfg )
function void  change_static_cfg ( svt_configuration cfg )
virtual function void  get_dynamic_cfg ( ref svt_configuration cfg )
virtual function bit  get_is_running ( )
virtual function void  get_static_cfg ( ref svt_configuration cfg )
function bit  is_valid_cfg_type ( svt_configuration cfg )

Protected Attributes

protected bit  is_running 


Member Function Documentation

  function void
 svt_env::build

 (   ) 


Build phase

 Superseded functions 
 ovm_component :: build 

 protected function void
 svt_env::change_dynamic_cfg

 (  svt_configuration cfg  ) 


Copies (deep) the dynamic configuration properties from the argument into the configuration object stored in the ENV. Used internally by reconfigure; not to be called directly.

 protected function void
 svt_env::change_static_cfg

 (  svt_configuration cfg  ) 


Copies (deep) the static configuration properties from the argument into the configuration object stored in the ENV. Used internally by reconfigure; not to be called directly.

  function void
 svt_env::connect

 (   ) 


Connect phase

 Superseded functions 
 ovm_component :: connect 

  function void
 svt_env::display_checked_out_features

 (   ) 


Displays the license features that were used to authorize this suite

  function void
 svt_env::get_cfg

 (  ref svt_configuration cfg  ) 


Returns a copy of the ENV's configuration object, including the current configuration settings. If cfg is null, creates configuration object of appropriate type.

 protected virtual function void
 svt_env::get_dynamic_cfg

 (  ref svt_configuration cfg  ) 


Copies (deep) the dynamic configuration properties from the configuration object stored in the ENV into the argument. If cfg is null, creates configuration object of appropriate type. Used internally by get_cfg; not to be called directly.

 protected virtual function bit
 svt_env::get_is_running

 (   ) 


Used to identify whether the ENV has been started. Based on whether the transactors in the ENV have been started.

Return values - 1 indicates that the ENV has been started, 0 indicates it has not.

 protected virtual function void
 svt_env::get_static_cfg

 (  ref svt_configuration cfg  ) 


Copies (deep) the static configuration properties from the configuration object stored in the ENV into the argument. If cfg is null, creates config object of appropriate type. Used internally by get_cfg; not to be called directly.

  function string
 svt_env::get_suite_name

 (   ) 


Returns the model suite name associated with an object.

 protected function bit
 svt_env::is_valid_cfg_type

 (  svt_configuration cfg  ) 


Expected to return a 1 if the supplied configuration object is of the correct type for the ENV. Extended classes implementing specific ENVs will provide an extended version of this method and call it directly.

  function void
 svt_env::new

 (  string name = "", ovm_component parent = null, string suite_name = ""  ) 


CONSTRUCTOR: Create a new ENV instance, passing the appropriate argument values to the `SVT_XVM(env) parent class.

name - Name assigned to this ENV.

parent - Component which contains this ENV

suite_name - Identifies the product suite to which the ENV object belongs.

  function void
 svt_env::reconfigure

 (  svt_configuration cfg  ) 


Updates the ENV configuration with data from the supplied object. This method always results in a call to reconfigure for the transactors.

  function void
 svt_env::report

 (   ) 


Report phase: If final report (i.e., intermediate_report = 0) this method calls svt_err_check :: report on the err_check object.

 Superseded functions 
 ovm_component :: report 

  task
 svt_env::run

 (   ) 


Run phase

 Superseded tasks 
 ovm_component :: run 


Member Attribute Documentation

 svt_err_check  attribute
 svt_env::err_check = null


DUT Error Check infrastructure object shared by the components of the ENV.

 svt_event_pool  attribute
 svt_env::event_pool


Event pool associated with this ENV

 int  attribute
 svt_env::intermediate_report = 1


Determines if a transaction summary should be generated in the report task.

 protected bit  attribute
 svt_env::is_running


Flag that indicates the driver has entered the run phase.

 ovm_report_object  attribute
 svt_env::reporter = this


SVT message macros route messages through this reference