Skip to content

UVM HDL Backdoor Access

These routines provide an interface to the DPI/PLI implementation of backdoor access used by registers.

uvm_hdl_read()

1
2
3
4
import "DPI-C" context function int uvm_hdl_read(
            string          path,
    output  uvm_hdl_data_t  value
)

Gets the value at the given path. Returns 1 if the call succeeded, 0 otherwise.

uvm_hdl_deposit()

1
2
3
4
import "DPI-C" context function int uvm_hdl_deposit(
    string          path,
    uvm_hdl_data_t  value
)

Sets the given HDL path to the specified value. Returns 1 if the call succeeded, 0 otherwise.

uvm_hdl_force()

1
2
3
4
import "DPI-C" context function int uvm_hdl_force(
    string          path,
    uvm_hdl_data_t  value
)

Forces the value on the given path. Returns 1 if the call succeeded, 0 otherwise.

uvm_hdl_release()

1
2
3
import "DPI-C" context function int uvm_hdl_release(
    string  path
)

Releases a value previously set with uvm_hdl_force. Returns 1 if the call succeeded, 0 otherwise.

Reference Material

Accellera

Source Code