Forum Discussion

steveataloriumtech's avatar
steveataloriumtech
Icon for New Contributor rankNew Contributor
3 years ago
Solved

Questa ignores package declaration

When trying to compile my design with Questa Starter Edition from Quartus 21.1, I get the following Warning. The compile subsequently blows up because the package is required by the design. No reason...
  • I discovered the cause of the problem using the verror command. To look up the meaning of the error codes that are spit out by vlog, you can use the following command:

    verror -all

    Looking up the 2176 error code seen in my error message, it says:

    vlog Message # 2176:
    A SystemVerilog source file within a library file specified with -v
    contains a package declaration that will not be compiled. Packages are
    ignored during library file scanning.

    I have been using the -v option to specify the files that contain package definitions, but for some reason, Questa has decided to ignore these. Why? Specifying the directory where they are located using the -y option prevents the above error.