function void add_hdl_path_slice(
string name,
int offset,
int size,
bit first = 0,
string kind = "RTL"
)
what is meant by offset and first in the add_hdl_path_slice in UVM_RAL?
function void add_hdl_path_slice(
string name,
int offset,
int size,
bit first = 0,
string kind = "RTL"
)
what is meant by offset and first in the add_hdl_path_slice in UVM_RAL?
In reply to harshag:
offset is the starting position of the slice/filed, and size is the number of bits. offset starts at position 0. The concatenation of all the slices should be the full register width.
IMHO, first is not described very clearly. You are expected to add all your slices consecutively, and then set first=1 when starting a new set of slices with a different register name or a different kind.
Thanks Dave for your information.
Hi Dave,
How to add multiple HDL Paths for different registers in the same regmodel.