Facing a compilation issue

In reply to sai_pra99:

You are including the file packet.sv at least 2 times. Package your files belonging together in a package this will resolve the issue.