Forum Discussion
Altera_Forum
Honored Contributor
15 years agoProcedures need to be declared before the "begin" of anything (so they can b e declared inside an architecture, process or even inside another function or procedure, and also in a package.
Procedures have to be called as a procedural statement, so thats any point after the begin of a process, fucntion or procedure. heres an example:
archutecture myarch of myent is
procedure do_something is
begin
--do something
end procedure;
begin
my_process : process
--you can declare the procedure here if you want, but only the process "my_process" can use it
begin
....
do_something;
end process;