Memory backdoor utility class
mem_bkdr_util class provides a way to manipulate the memory array directly via backdoor.
It includes a set of functions to backdoor read or write any address location within the memory.
The class instance is created in the testbench module and passed to the UVM environment via
This interface supports basic backdoor methods to access memory. Useful methods are:
is_addr_valid: Check if input address is valid The input address is assumed to be the byte addressable address into memory starting at 0. It is user’s responsibility to mask the upper bits.
read64: Functions to read one byte, two bytes, four bytes, and eight bytes respectively at specified input address
write64: Functions to write one byte, two bytes, four bytes, and eight bytes respectively with input data at specified input address
load_mem_from_file: Load memory from a file specified by input string
print_mem: Print the content of the memory
clear_mem: Clear the memory to all 0s
set_mem: Set the memory to all 1s
randomize_mem: Randomize contents of the memory