Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

procedure visibility to different processes problem!

Status
Not open for further replies.

seafan

Technical User
Mar 22, 2003
1
GR
i have declared 2 procedures inside a process

architecture
.
.
process
proc1 ( sets signal A,B)
proc2 (sets signal A,B)

begin - process body
sets A
sets B
end process

it works ok, but i want to split the process in two processes
processA
sets signal A
end process

processB
sets signal B
end process

and therefore i need to put the procedures
under the architecture declaration in order to be visible by BOTH processes of the architecture. However the compile produces errors . .
Does anyone have an idea about what i am missing ?
 
I'm having issues with this too,
but look into packages - they let you move procedures out to a new VHDL file package, which you can then reference from any process. Trouble is these packaged procedures do not have access to any signals within the calling process, unless you pass a "connection" to those signals in the calling process by using signal parameters. Gets very messy, makes you want to stick to one process with a huge amount of procedures in one big messy file..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top