Hi All,
How can we add path for memory to access back-door.
There are lot of questions/information on accessing the back door register not for uvm_mem.
I’m looking a back door access of memory derived from uvm_mem.
For an example:
class my_mem extends uvm_mem;
…
In top reg class:
my_mem_h = my_mem :: type_id::create(“my_mem_h”);
my_mem_h.configure(this,“my_mem_h”);
From test I need a following:
top_block.read(status,read_data_mem,UVM_BACKDOOR);
Now uvm_mem methods to add hdl path:
// Function: add_hdl_path
//
// Add an HDL path
//
// Add the specified HDL path to the memory instance for the specified
// design abstraction. This method may be called more than once for the
// same design abstraction if the memory is physically duplicated
// in the design abstraction
//
extern function void add_hdl_path (uvm_hdl_path_slice slices,
string kind = “RTL”);
- How we can do a back-door access here?
- How to add a path here?
Any example would be appreciated.