svt_mem_driver_callback Class Reference

Inheritance diagram for class svt_mem_driver_callback:

List of all members.


Detailed Description

Generiic memory driver callback class. Defines generic callback methods available in all memory drivers. Protocol-specific drivers may offer additional callback methods in a protocol-specific extension of this class.



Public Member Functions

function void  new ( string name = "svt_mem_driver_callback", string suite_name = "" )
virtual function void  post_response_get ( svt_mem_driver driver, svt_mem_transaction rsp )
virtual function void  post_response_get_cov ( svt_mem_driver driver, svt_mem_transaction req, svt_mem_transaction rsp )
virtual function void  pre_request_put ( svt_mem_driver driver, svt_mem_transaction req )
virtual function void  transaction_ended ( svt_mem_driver driver, svt_mem_transaction req, svt_mem_transaction rslt )
virtual function void  transaction_started ( svt_mem_driver driver, svt_mem_transaction req, svt_mem_transaction rsp )


Member Function Documentation

  function void
 svt_mem_driver_callback::new

 (  string name = "svt_mem_driver_callback", string suite_name = ""  ) 


CONSTRUCTOR: Create a new callback instance

 Superseded functions 
 svt_callback :: new 

 virtual function void
 svt_mem_driver_callback::post_response_get

 (  svt_mem_driver driver , svt_mem_transaction rsp  ) 


Called after getting a response from the memory reactive sequencer, but before the post_responsed_get_cov callbacks are executed. Modifying the response descriptor will modify the response itself.

driver - A reference to the svt_mem_driver component that is issuing this callback. The user's callback implementation can use this to access the public data and/or methods of the component.

rsp - A reference to the memory response descriptor

 virtual function void
 svt_mem_driver_callback::post_response_get_cov

 (  svt_mem_driver driver , svt_mem_transaction req , svt_mem_transaction rsp  ) 


Called after the post_response_get callbacks have been executed, but before the response is physically executed by the driver. The request and response descriptors must not be modified. In most cases, both the request and response descriptors are the same objects.

driver - A reference to the svt_mem_driver component that is issuing this callback. The user's callback implementation can use this to access the public data and/or methods of the component.

req - A reference to the memory request descriptor

rsp - A reference to the memory response descriptor

 virtual function void
 svt_mem_driver_callback::pre_request_put

 (  svt_mem_driver driver , svt_mem_transaction req  ) 


Called before the memory driver sends a request to memory reactive sequencer. Modifying the request descriptor will modify the request itself.

driver - A reference to the svt_mem_driver component that is issuing this callback. The user's callback implementation can use this to access the public data and/or methods of the component.

req - A reference to the memory request descriptor object

 virtual function void
 svt_mem_driver_callback::transaction_ended

 (  svt_mem_driver driver , svt_mem_transaction req , svt_mem_transaction rslt  ) 


Called after the memory transaction has been completely executed. The memory request and response descriptors must not be modified. In most cases, both the request and response descriptors are the same objects.

driver - A reference to the svt_mem_driver component that is issuing this callback. The user's callback implementation can use this to access the public data and/or methods of the component.

req - A reference to the memory request descriptor

rslt - A reference to the completed memory transaction descriptor.

 virtual function void
 svt_mem_driver_callback::transaction_started

 (  svt_mem_driver driver , svt_mem_transaction req , svt_mem_transaction rsp  ) 


Called when the driver starts executing the memory transaction response. The memory request and response descriptors should not be modified.

driver - A reference to the svt_mem_driver component that is issuing this callback. The user's callback implementation can use this to access the public data and/or methods of the component.

req - A reference to the memory request descriptor

rsp - A reference to the memory response descriptor