A strange scenario where the number of packets needed for a slave driver memory write is very high. why is it like that?

I have to explicitly set the number of packets in my slave sequence, the slave driver is not taking the data from the interface and deciding how many packets it want. hence my ahb slave driver uses a lot of packets for writing data to ahb slave memory. why am i experiencing this scenario? what is going wrong in the code.

In reply to Vishnupriya2811:

I is impossible to determine what is wrong with your code without seeing it. You should post an example on EDA Playground which demonstrates the issues you are encountering.