• FUNCTIONS and PROCEDURES are collectively called subprograms.
• They are very similar to a PROCESS , for they are the only pieces of sequential VHDL code, and thus employ the same sequential statements (IF, CASE, and LOOP; WAIT is not allowed).
• PROCESS is intended for immediate use in the main code, FUNCTIONS & PROCEDURES are intended mainly for LIBRARY allocation, that is, their purpose is to store commonly used pieces of code, so they can be reused or shared by other projects.
• A FUNCTION or PROCEDURE can also be installed in the main code itself.
information shared by www.irvs.info
No comments:
Post a Comment