I am writing a code that is using an external package, but it is not finding the Types that i have declared in the package.
I've tried adding the package as a file using the import wizard and tried adding it as a library. No error is happening on the package name but on the instruction where i use the type declared in the package.
USE X.ALL;
ENTITY Y IS
PORT (I : IN packagetype;
O : OUT packagetype);
END Y;
ARCHITECTURE ArchX OF Y IS
BEGIN
O <= function(I);
END ArchX;
the following error appears: object packagetype is used but not declared
packagetype.functionis a reserved word and may not be used as a function subprogram designator nor identifier of an object of an array type declared in the package. The synthesis tool poorly describes the error,packagetypeis a type mark in port declarations and is not an object holding a value of a type. Simulator analyzers (compilers) typical provide more meaningful error messages. Provide a minimal reproducible example with a minimal package declaration and body. - user1155120packagetypeis not made visible by a context item provided to the primary design unitY(made visible neither by a library clause nor a use clause). - user1155120