Vishwanath Posted June 21, 2011 Report Share Posted June 21, 2011 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 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.