Create map in UVM RAL model

Hi,

function uvm_reg_map create_map(string name, // Name of the map handle
uvm_reg_addr_t base_addr, // The maps base address
int unsigned n_bytes, // Map access width in bytes
uvm_endianness_e endian, // The endianess of the map
bit byte_addressing=1); // Whether byte_addressing is supported

what is the relation between n_bytes & byte addressing? I had referred cookbook but I didn’t understand it, please help

Thanks,

In reply to ASICverif:

n_bytes defines the width of the register in bytes, i.e. n_bytes = 2 means the register has a width of 16 bits.

In reply to chr_sue:

Hi,

Thank you for the response,
what about byte_addressing?

In reply to ASICverif:

This is what the UVM Ref Manual is saying:
specifies whether consecutive addresses refer are 1 byte apart (TRUE) or n_bytes apart (FALSE). Default is TRUE.
This is related to n_bytes and means the adresses are 1 byte (8 bit) or more bytes apart from each.