vmm_sb_ds Class Reference

Inheritance list for class vmm_sb_ds:

List of all members.
Defined at line 60 of file sv/sb/vmm_sb_ds.sv.

Public Member Functions

function void  append_callback ( vmm_sb_ds_callbacks cb )
function bit  compare ( vmm_data actual, vmm_data expected )
function void  define_stream ( int stream_id, string descr = , kind_e kind = EITHER )
function void  describe ( )
function void  display ( string prefix = )
function vmm_data  expect_in_order ( vmm_data pkt, int exp_stream_id = -1, int inp_stream_id = -1, bit silent = 0 )
function vmm_data  expect_out_of_order ( vmm_data pkt, int exp_stream_id = -1, int inp_stream_id = -1, bit silent = 0 )
function bit  expect_with_losses ( input vmm_data pkt, output vmm_data matched, output vmm_data lost, input int exp_stream_id = -1, input int inp_stream_id = -1, input bit silent = 0 )
function void  flush ( )
function int  get_n_dropped ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  get_n_inserted ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  get_n_matched ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  get_n_mismatched ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  get_n_not_found ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  get_n_orphaned ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  get_n_pending ( int exp_stream_id = -1, int inp_stream_id = -1 )
function bit  insert ( vmm_data pkt, kind_e kind = INPUT, int exp_stream_id = -1, int inp_stream_id = -1 )
function bit  match ( vmm_data actual, vmm_data expected )
function void  new ( string name )
function vmm_sb_ds_iter  new_sb_iter ( int exp_stream_id = -1, int inp_stream_id = -1 )
function vmm_sb_ds_stream_iter  new_stream_iter ( int exp_stream_id = -1, int inp_stream_id = -1 )
function void  prepend_callback ( vmm_sb_ds_callbacks cb )
function bit  quick_compare ( vmm_data actual, vmm_data expected )
function bit  remove ( vmm_data pkt, kind_e kind = INPUT, int exp_stream_id = -1, int inp_stream_id = -1 )
function void  report ( int exp_stream_id = -1, int inp_stream_id = -1 )
function int  stream_id ( vmm_data pkt, kind_e kind = EITHER )
function bit  transform ( input vmm_data in_pkt, output vmm_data out_pkts )
function void  unregister_callback ( vmm_sb_ds_callbacks cb )

Public Attributes

local vmm_sb_ds_callbacks  callbacks [$] 
local bit  insert_recursed = 0; 
vmm_log  log 
local int  n_not_found = 0; 
local int  n_orphaned = 0; 
vmm_notify  notify 
local bit  orphaned = 0; 
bit  Xdefine_stream_calledX = 0; 
vmm_sb_ds_exp_streams  Xexp_streamsX [int] 
string  Xexp_stream_descsX [int] 
string  Xinp_stream_descsX [int] 
bit  Xparallel_streamsX = 0; 

Enum Typedefs

 typedef enum  kind_e 
 typedef enum  notifications_e 
 typedef enum  ordering_e 


Member Function Documentation

  function void
 vmm_sb_ds::append_callback

 (  vmm_sb_ds_callbacks cb  ) 


Prototype at line 137 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1046 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::compare

 (  vmm_data actual, vmm_data expected  ) 


Prototype at line 109 of file sv/sb/vmm_sb_ds.sv.
Defined at line 597 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::define_stream

 (  int stream_id, string descr = , kind_e kind = EITHER  ) 


Prototype at line 90 of file sv/sb/vmm_sb_ds.sv.
Defined at line 346 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::describe

 (   ) 


Prototype at line 157 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1234 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::display

 (  string prefix =  ) 


Prototype at line 158 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1246 of file sv/sb/vmm_sb_ds.sv.

  function vmm_data
 vmm_sb_ds::expect_in_order

 (  vmm_data pkt, int exp_stream_id = -1, int inp_stream_id = -1, bit silent = 0  ) 


Prototype at line 117 of file sv/sb/vmm_sb_ds.sv.
Defined at line 610 of file sv/sb/vmm_sb_ds.sv.

  function vmm_data
 vmm_sb_ds::expect_out_of_order

 (  vmm_data pkt, int exp_stream_id = -1, int inp_stream_id = -1, bit silent = 0  ) 


Prototype at line 127 of file sv/sb/vmm_sb_ds.sv.
Defined at line 893 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::expect_with_losses

 (  input vmm_data pkt, output vmm_data matched, output vmm_data lost, input int exp_stream_id = -1, input int inp_stream_id = -1, input bit silent = 0  ) 


Prototype at line 123 of file sv/sb/vmm_sb_ds.sv.
Defined at line 727 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::flush

 (   ) 


Prototype at line 129 of file sv/sb/vmm_sb_ds.sv.
Defined at line 999 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_dropped

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 149 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1135 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_inserted

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 141 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1077 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_matched

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 145 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1107 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_mismatched

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 147 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1121 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_not_found

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 151 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1149 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_orphaned

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 153 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1167 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::get_n_pending

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 143 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1093 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::insert

 (  vmm_data pkt, kind_e kind = INPUT, int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 95 of file sv/sb/vmm_sb_ds.sv.
Defined at line 391 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::match

 (  vmm_data actual, vmm_data expected  ) 


Prototype at line 105 of file sv/sb/vmm_sb_ds.sv.
Defined at line 585 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::new

 (  string name  ) 


Prototype at line 83 of file sv/sb/vmm_sb_ds.sv.
Defined at line 312 of file sv/sb/vmm_sb_ds.sv.

  function vmm_sb_ds_iter
 vmm_sb_ds::new_sb_iter

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 132 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1014 of file sv/sb/vmm_sb_ds.sv.

  function vmm_sb_ds_stream_iter
 vmm_sb_ds::new_stream_iter

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 134 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1022 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::prepend_callback

 (  vmm_sb_ds_callbacks cb  ) 


Prototype at line 136 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1029 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::quick_compare

 (  vmm_data actual, vmm_data expected  ) 


Prototype at line 107 of file sv/sb/vmm_sb_ds.sv.
Defined at line 591 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::remove

 (  vmm_data pkt, kind_e kind = INPUT, int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 99 of file sv/sb/vmm_sb_ds.sv.
Defined at line 490 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::report

 (  int exp_stream_id = -1, int inp_stream_id = -1  ) 


Prototype at line 156 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1201 of file sv/sb/vmm_sb_ds.sv.

  function int
 vmm_sb_ds::stream_id

 (  vmm_data pkt, kind_e kind = EITHER  ) 


Prototype at line 86 of file sv/sb/vmm_sb_ds.sv.
Defined at line 339 of file sv/sb/vmm_sb_ds.sv.

  function bit
 vmm_sb_ds::transform

 (  input vmm_data in_pkt, output vmm_data out_pkts  ) 


Prototype at line 102 of file sv/sb/vmm_sb_ds.sv.
Defined at line 576 of file sv/sb/vmm_sb_ds.sv.

  function void
 vmm_sb_ds::unregister_callback

 (  vmm_sb_ds_callbacks cb  ) 


Prototype at line 138 of file sv/sb/vmm_sb_ds.sv.
Defined at line 1063 of file sv/sb/vmm_sb_ds.sv.


Member Attribute Documentation

 local vmm_sb_ds_callbacks  attribute
 vmm_sb_ds::callbacks[$]


Defined at line 73 of file sv/sb/vmm_sb_ds.sv.

 local bit  attribute
 vmm_sb_ds::insert_recursed = 0


Defined at line 71 of file sv/sb/vmm_sb_ds.sv.

 vmm_log  attribute
 vmm_sb_ds::log


Defined at line 75 of file sv/sb/vmm_sb_ds.sv.

 local int  attribute
 vmm_sb_ds::n_not_found = 0


Defined at line 68 of file sv/sb/vmm_sb_ds.sv.

 local int  attribute
 vmm_sb_ds::n_orphaned = 0


Defined at line 70 of file sv/sb/vmm_sb_ds.sv.

 vmm_notify  attribute
 vmm_sb_ds::notify


Defined at line 76 of file sv/sb/vmm_sb_ds.sv.

 local bit  attribute
 vmm_sb_ds::orphaned = 0


Defined at line 69 of file sv/sb/vmm_sb_ds.sv.

 bit  attribute
 vmm_sb_ds::Xdefine_stream_calledX = 0


Defined at line 65 of file sv/sb/vmm_sb_ds.sv.

 vmm_sb_ds_exp_streams  attribute
 vmm_sb_ds::Xexp_streamsX[int]


Defined at line 62 of file sv/sb/vmm_sb_ds.sv.

 string  attribute
 vmm_sb_ds::Xexp_stream_descsX[int]


Defined at line 64 of file sv/sb/vmm_sb_ds.sv.

 string  attribute
 vmm_sb_ds::Xinp_stream_descsX[int]


Defined at line 63 of file sv/sb/vmm_sb_ds.sv.

 bit  attribute
 vmm_sb_ds::Xparallel_streamsX = 0


Defined at line 66 of file sv/sb/vmm_sb_ds.sv.


Member Enum Typedef Documentation

 typedef enum
 vmm_sb_ds::kind_e
EITHER
INPUT
EXPECT


Defined at line 78 of file sv/sb/vmm_sb_ds.sv.

 typedef enum
 vmm_sb_ds::notifications_e
INSERTED = 999
EMPTY
MATCHED
MISMATCHED
DROPPED
NOT_FOUND
ORPHANED


Defined at line 81 of file sv/sb/vmm_sb_ds.sv.

 typedef enum
 vmm_sb_ds::ordering_e
IN_ORDER
WITH_LOSSES
OUT_ORDER


Defined at line 112 of file sv/sb/vmm_sb_ds.sv.