How to make soft constraint for dynamic array type

In reply to Rao.Bee:

Thanks for responding.
In your headline you are saing you are using a dynamic array.
If it is a queue then you are declaring it as a queue of 16 entries data_in.
In your sequence you are defining
`uvm_do_with(req,{req.m_hburst == INCR16;req.m_hwrite == 1;req.m_haddr == t_haddr;req.data_in.size()== 40;}),
i.e. size of data_in is requested to be 40 which is not consistent with the definition.