Functions and subprograms

Status
Not open for further replies.
There is no such thing as a program in VHDL, so there is no such thing as a subprogram.
 

**broken link removed** 2.9 Subprograms
**broken link removed**
 
Last edited:

both functions and procedures are synthesizable. At least, as long as the code within them is synthesizable.

procedures are often used for simulations, while functions are fairly common. You should do a test run with any complex function to see how it synthesizes. The tools don't always pick up an optimal solution.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…