Jump to content

Unable to use big_endian field if object of uvm_packer is not accessible


Recommended Posts

Hi

I have a class object which calls packet.unpack_bytes(stream,packer);

Here the object packer of class uvm_packer is passed as part of the unpack_bytes function arguments.

This packer is not the uvm_default_packer & I do not have access to the packer object.

Now if I want to change big_endian field of packer I can do it in the do_unpack function.

But this is of no effect as in the implementation of unpack_bytes , put_bytes(which handles the bigendian conversion) is called before do_unpack.

Is there an easy way to set the big_endian field & have its effect if packer object is not accessible.

Thanks,

Vishwanath

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...