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!

Sensitivity list of a process

Status
Not open for further replies.

RVSachin

Technical User
Nov 12, 2001
77
IN
Is it correct to have a signal in the sensitivity list of a process just because it appears on the RHS of an assignment even though the same signal is also on the LHS?

Consider the following example:

process(en, b)
begin
if en = '1' then
a(0) <= a(0) and b(1);
-- other assignments
else
a(0) <= a(0) or b(1);
-- other assignments
end if;
end process;

In this case, is it really necessary to have a (.. or a(0) ) in the sensitivity list just because a(0) is one of the inputs. By having 'a' in the sensitivity list, aren't we forcing the process to execute infinetely?

-RV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top