swapnilm Posted May 27, 2013 Report Share Posted May 27, 2013 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, Quote Link to comment Share on other sites More sharing options...
swapnilm Posted May 29, 2013 Author Report Share Posted May 29, 2013 Can someone please give me some idea about it? What could be the UVM methods to create nested frames? Would appreciate it. Thanks, Quote Link to comment Share on other sites More sharing options...
wushan Posted June 1, 2013 Report Share Posted June 1, 2013 To swapnilm, Maybe the Virtual Sequences mechanism will fit your requirement. Refer to Universal Verification Methodology (UVM) 1.1 User’s Guide Chapter 4.8. Best regards Quote Link to comment Share on other sites More sharing options...
mea1201 Posted June 5, 2013 Report Share Posted June 5, 2013 If you're talking about different encapsulations, then you can go about it in one of two possible ways: Define a single packet model that is flat, and includes knobs (random and non-random) to determine if a particular header is present or not. Define a class hierarchy/family of packet types. I think #1 is simpler and less unwieldy to deal with. Does that sort of address your question? Quote Link to comment Share on other sites More sharing options...
swapnilm Posted June 6, 2013 Author Report Share Posted June 6, 2013 Hi mea1201, I actually want to insert one(or more) packets into another packet.This encapsualtion of pkts will start from the second byte of the header. I didnt really get what you said. Could you please elaborate a little more. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.