In reply to deeksha123:
Then the C code should give you back the expected packet. If not accessible you could use the dpi c to interface with it and you will get the packet. Alternatively you could implement you own model though.
Another easy way could be write all the expected output vector into a file and make you scoreboard capable to read it back to make comparisons. Regards