Download VMM 1.2 Standard Library User Guide

Transcript
vmm_data::do_byte_pack()
Overrides the shorthand byte_pack() method.
SystemVerilog
virtual int function do_byte_pack(ref logic [7:0] bytes[],
input int unsigned offset = 0,
input int kind = -1);
OpenVera
Not supported.
Description
This method overrides the default implementation of the
vmm_data::byte_pack() method that is created by the
vmm_data shorthand macros. If defined, this method is used instead
of the default implementation.
The default implementation of this method in the vmm_data base
class must not be called (for example, do not call
super.do_byte_pack()).
The specified argument bytes is the dynamic array in which
transaction contents are packed, starting at the specified offset
value. The specified argument kind can be used to specify which
interpretation or packing to use.
Example
Example A-68
class eth_frame extends vmm_data;
Standard Library Classes (Part 1)
A-180