[source]

Class uvm_set_get_dap_base

uvm_pkg::uvm_set_get_dap_base <T> + get(): T + set(): void + try_get(): bit + try_set(): bit uvm_pkg::uvm_simple_lock_dap <T> uvm_pkg::uvm_set_before_get_dap <T> uvm_pkg::uvm_get_to_lock_dap <T> <T : T> <T : T> <T : T>

Inheritance Diagram of 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.

Parameters

Name

Default value

Description

T

int

Typedefs

Name

Actual Type

Description

this_type

uvm_set_get_dap_base#(T)

Used for self references

Constructors

function new ( string name ) [source]

Constructor

Functions

virtual function void set ( int value ) [source]

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.

virtual function bit try_set ( int value ) [source]

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.

virtual function T get ( ) [source]

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.

virtual function bit try_get ( int value ) [source]

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.