I was trying as below:
class Packet extends uvm_object;
rand bit [2:0] a;
rand bit [3:0] b;
rand bit [4:0] c;
rand bit [5:0] d;
rand bit [7:0] e;
After looking into UVM library, I got to know that `uvm_field_int(a, UVM_DEFAULT) includes "packer.pack_field_int(a, $bits(a));".
If I don't want to pack some variable, then I should use '`uvm_field_int(d, UVM_DEFAULT|UVM_NOPACK)'.
But now I have a different question:
I have a packet.sv file which has class Packet as shown above. But I cannot modify this packet.sv file.
And I want to pack only a,b,c variables. So how can I do that?