svt_sb_ds_check_callbacks Class Reference

Inheritance diagram for class svt_sb_ds_check_callbacks:

List of all members.



Public Member Functions

function void  define_stream_checks ( int stream_id, string descr = "" )
function void  dropped ( input vmm_sb_ds sb, input vmm_data pkts[], input int exp_stream_id, input int inp_stream_id, ref int count )
function string  get_pkt_diff ( vmm_data base_pkt, vmm_data compare_pkt )
function void  mismatched ( input vmm_sb_ds sb, input vmm_data pkt, input int exp_stream_id, input int inp_stream_id, ref int count )
function void  new ( vmm_log log, svt_err_check check = null, string pkt_name = "" )
function void  not_found ( input vmm_sb_ds sb, input vmm_data pkt, input int exp_stream_id, input int inp_stream_id, ref int count )
function void  orphaned ( input vmm_sb_ds sb, input vmm_data pkts[], input int exp_stream_id, input int inp_stream_id, ref int count )

Public Attributes

svt_err_check  check = null; 
svt_err_check_stats  check_pkt_dropped [int] 
svt_err_check_stats  check_pkt_mismatched [int] 
svt_err_check_stats  check_pkt_not_found [int] 
svt_err_check_stats  check_pkt_orphaned [int] 
vmm_log  log 
string  pkt_name = ""; 


Member Function Documentation

  function void
 svt_sb_ds_check_callbacks::define_stream_checks

 (  int stream_id , string descr = ""  ) 


Creates checks associated with the stream. NOTE: Modeled after define_stream, in the hope that define_stream will become virtual someday. This method should be called with the same arguments which were supplied to the vmm_sb_ds :: define_stream method.

  function void
 svt_sb_ds_check_callbacks::dropped

 (  input vmm_sb_ds sb , input vmm_data pkts [], input int exp_stream_id , input int inp_stream_id , ref int count  ) 


Extended callback method.

 Superseded functions 
 vmm_sb_ds_callbacks :: dropped 

  function string
 svt_sb_ds_check_callbacks::get_pkt_diff

 (  vmm_data base_pkt , vmm_data compare_pkt  ) 


Extensible utility method used to obtain diff string for use in reporting

  function void
 svt_sb_ds_check_callbacks::mismatched

 (  input vmm_sb_ds sb , input vmm_data pkt , input int exp_stream_id , input int inp_stream_id , ref int count  ) 


Extended callback method.

 Superseded functions 
 vmm_sb_ds_callbacks :: mismatched 

  function void
 svt_sb_ds_check_callbacks::new

 (  vmm_log log , svt_err_check check = null, string pkt_name = ""  ) 


CONSTRUCTOR: Creates a new instance of the SB check reporting class.

log - An vmm_log object reference used for reporting purposes.

check - An SVT Error Check class used to report SB errors.

pkt_name - The logical name of the transaction being scoreboarded. This is used in checks and in reports, and should be the name of a single transaction instance, e.g., 'Transaction', 'Packet', etc.

  function void
 svt_sb_ds_check_callbacks::not_found

 (  input vmm_sb_ds sb , input vmm_data pkt , input int exp_stream_id , input int inp_stream_id , ref int count  ) 


Extended callback method.

 Superseded functions 
 vmm_sb_ds_callbacks :: not_found 

  function void
 svt_sb_ds_check_callbacks::orphaned

 (  input vmm_sb_ds sb , input vmm_data pkts [], input int exp_stream_id , input int inp_stream_id , ref int count  ) 


Extended callback method.

 Superseded functions 
 vmm_sb_ds_callbacks :: orphaned 


Member Attribute Documentation

 svt_err_check  attribute
 svt_sb_ds_check_callbacks::check = null


SVT Check reporting class, used to register and execute SB errors.

 svt_err_check_stats  attribute
 svt_sb_ds_check_callbacks::check_pkt_dropped[int]


Check that fails when transport is found, but not at front, of Expected Queue.

 svt_err_check_stats  attribute
 svt_sb_ds_check_callbacks::check_pkt_mismatched[int]


Check that fails when transport passes vmm_sb_ds :: quick_compare but fails svt_data :: compare versus the pkt in the Expected Queue.

 svt_err_check_stats  attribute
 svt_sb_ds_check_callbacks::check_pkt_not_found[int]


Check that fails when transport isn't found in Expected Queue.

 svt_err_check_stats  attribute
 svt_sb_ds_check_callbacks::check_pkt_orphaned[int]


Check that fails if transports are still in Expected Queue when checked at end-of-sim.

 vmm_log  attribute
 svt_sb_ds_check_callbacks::log


Log instance

 string  attribute
 svt_sb_ds_check_callbacks::pkt_name = ""


Transaction name used in transcripts and reporting.