Error near "cfg": syntax error, unexpected IDENTIFIER, expecting ')'. Class or package 'mgc_axi4_v1_0_pkg' not found

In reply to dave_59:

The first error message indicates of “not finding the package (mgc_axi4_v1_0_pkg).”

  1. I tried including the correct path name for this file. It did not work out though.
  2. I tried copying this package from source file to project file (where I am simulating the code).

The error got fixed while I did the 2nd method. Thanks, Dave sir!