Hello all,
I want to create nested frames/packets. My packet structure is shown below. I want to have nested frames(one or more frames within another frame) starting from 2nd byte of header and before the EOF/EOT. Please give me some guidance of how to include nested frames into another frames in UVM? What are the methods/macros in UVM which will be usefull in this regard.
[/code]
rand bit [7:0] sync;
rand bit [7:0] sof;
rand bit [15:0] header;
rand bit [7:0] payload[];
rand bit [15:0] crc;
rand bit [7:0] eof; //Or EOT(end of transmission)
[/code]
Any help/suggestion is appreciated.
Thanks,