uvm_set_get_dap_base

Provides the ‘set’ and ‘get’ interface for Data Access Policies (DAPs)

The ‘Set/Get’ base class simply provides a common interface for the various DAPs to implement.  This provides a mechanism for consistent implementations of similar DAPs.

Summary
uvm_set_get_dap_base
Provides the ‘set’ and ‘get’ interface for Data Access Policies (DAPs)
Class Hierarchy
uvm_set_get_dap_base
Class Declaration
virtual class uvm_set_get_dap_base#(
    type  T  =  int
) extends uvm_object
newConstructor
Set/ Get InterfaceAll implementations of the uvm_set_get_dap_base class must provide an implementation of the four basic “Set and Get” accessors.
setSets the value contained within the resource.
try_setAttempts to set the value contained within the resource.
getRetrieves the value contained within the resource.
try_getAttempts to retrieve the value contained within the resource.

new

function new(
    string  name  =  "unnamed-uvm_set_get_dap_base#(T)"
)

Constructor

Set/ Get Interface

All implementations of the uvm_set_get_dap_base class must provide an implementation of the four basic “Set and Get” accessors.

set

pure virtual function void set(
    value
)

Sets the value contained within the resource.

Depending on the DAP policies, an error may be reported if it is illegal to ‘set’ the value at this time.

try_set

pure virtual function bit try_set(
    value
)

Attempts to set the value contained within the resource.

If the DAP policies forbid setting at this time, then the method will return 0, however no errors will be reported.  Otherwise, the method will return 1, and will be treated like a standard set call.

get

pure virtual function T get()

Retrieves the value contained within the resource.

Depending on the DAP policies, an error may be reported if it is illegal to ‘get’ the value at this time.

try_get

pure virtual function bit try_get(
    output  value
)

Attempts to retrieve the value contained within the resource.

If the DAP policies forbid retrieving at this time, then the method will return 0, however no errors will be reported.  Otherwise, the method will return 1, and will be treated like a standard get call.

virtual class uvm_void
The uvm_void class is the base class for all UVM classes.
virtual class uvm_object extends uvm_void
The uvm_object class is the base class for all UVM data and hierarchical classes.
virtual class uvm_set_get_dap_base#(
    type  T  =  int
) extends uvm_object
Provides the ‘set’ and ‘get’ interface for Data Access Policies (DAPs)
function new(
    string  name  =  "unnamed-uvm_set_get_dap_base#(T)"
)
Constructor
pure virtual function void set(
    value
)
Sets the value contained within the resource.
pure virtual function bit try_set(
    value
)
Attempts to set the value contained within the resource.
pure virtual function T get()
Retrieves the value contained within the resource.
pure virtual function bit try_get(
    output  value
)
Attempts to retrieve the value contained within the resource.