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.
uvm_set_get_dap_base | |||||||||||||||||
Provides the ‘set’ and ‘get’ interface for Data Access Policies (DAPs) | |||||||||||||||||
Class Hierarchy | |||||||||||||||||
| |||||||||||||||||
Class Declaration | |||||||||||||||||
| |||||||||||||||||
new | 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 | Sets the value contained within the resource. | ||||||||||||||||
try_set | Attempts to set the value contained within the resource. | ||||||||||||||||
get | Retrieves the value contained within the resource. | ||||||||||||||||
try_get | Attempts to retrieve the value contained within the resource. |
All implementations of the uvm_set_get_dap_base class must provide an implementation of the four basic “Set and Get” accessors.
pure virtual function void set( T 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.
pure virtual function bit try_set( T 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.
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.
pure virtual function bit try_get( output T 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.
The uvm_void class is the base class for all UVM classes.
virtual class uvm_void
The uvm_object class is the base class for all UVM data and hierarchical classes.
virtual class uvm_object extends uvm_void
Provides the ‘set’ and ‘get’ interface for Data Access Policies (DAPs)
virtual class uvm_set_get_dap_base#( type T = int ) extends uvm_object
Constructor
function new( string name = "unnamed-uvm_set_get_dap_base#(T)" )
Sets the value contained within the resource.
pure virtual function void set( T value )
Attempts to set the value contained within the resource.
pure virtual function bit try_set( T value )
Retrieves the value contained within the resource.
pure virtual function T get()
Attempts to retrieve the value contained within the resource.
pure virtual function bit try_get( output T value )