Implementation of uvm_tlm_generic_payload, as described in section 12.3.4.2.1 of 1800.2-2017.
uvm_tlm_generic_payload | |
Implementation of uvm_tlm_generic_payload, as described in section 12.3.4.2.1 of 1800.2-2017. | |
Methods | |
do_compare | Compares this generic payload to rhs. |
do_pack | Packs the fields of the payload in packer. |
do_unpack | Unpacks the fields of the payload from packer. |
function bit do_compare( uvm_object rhs, uvm_comparer comparer )
Compares this generic payload to rhs.
The do_compare method compares the fields of this instance to to those of rhs. All fields are compared, however if byte enables are being used, then non-enabled bytes of data are skipped.
@uvm-contrib This API is being considered for potential contribution to 1800.2
function void do_pack( uvm_packer packer )
Packs the fields of the payload in packer.
Only <m_length> bytes of the <m_data> array are packed, and a fatal message is generated if m_data.size() is less than <m_length>. The same is true for <m_byte_enable_length> and <m_byte_enable>.
Note: The extensions are not packed.
@uvm-contrib This API is being considered for potential contribution to 1800.2
function void do_unpack( uvm_packer packer )
Unpacks the fields of the payload from packer.
The <m_data>/<m_byte_enable> arrays are reallocated if the new size is greater than their current size; otherwise the existing array allocations are kept.
Note: The extensions are not unpacked.
@uvm-contrib This API is being considered for potential contribution to 1800.2
Compares this generic payload to rhs.
function bit do_compare( uvm_object rhs, uvm_comparer comparer )
Packs the fields of the payload in packer.
function void do_pack( uvm_packer packer )
Unpacks the fields of the payload from packer.
function void do_unpack( uvm_packer packer )