Altera_Forum
Honored Contributor
15 years agovhdl library help
Hi all. Im doing a final year project and I to make things easier I need to make a custom library with functions. How do I make my own library? I tried a bunch of things like adding my own vhdl file into the quartus installation directory library folders. No luck there.
I have a function but I cant put it into my main entity file or its architecture. If I do and I call it I get a synthesis error saying that the <function name> object is used but not declared. I am thinking this has to do with the function not being declared (as in C). Basically I have this function defined. It compiles. But what is wrong here? Do I need to make my own library for this VHDL function or do I need to declare it at the top of the file? Thanks