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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

process call happening more than once

Status
Not open for further replies.

pinaki

Programmer
Aug 10, 2001
6
US
I have a process like below.

alu: process (ain, bin, sel, cinflag)
begin
...
end process alu;

Inside this process, it is modifying another signal cout based on the values of the parameters. Basically, cout <= ain (op) bin. When the signals ain and cout are identical, this ends up invoking the process again (since the value of ain in the sensitivity list changes). How can I prevent this from happening?

Thanks in advance.
 
As you know, the process loop that you have written gets triggered when any one of the 4 parameters in the sensitivity list change at any point of time.

The assignment statement 'cout <= ain (op) bin' doesnot affect ur process sensitivity list parameters and more over 'cout' being equal to 'ain' in 'cout <= ain (op) bin' has nothing to do with ur process being triggered again.

The reason why your process might be getting triggered again must be a feedback statement to ain or bin, or an external statement causing an unwanted change in state of any one of the 4 parameters in the sensitivity list.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top