Why do I get this warning? " .... does not appear in the sensitivity list....."

Status
Not open for further replies.

asicguygmail

Newbie level 4
Joined
Jan 4, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,351
Why do I get this warning? " .... does not appear in the sensitivity list....."

I get following warning because of the RTL that is followed. You can see that the signal in_from_vn[1972] (The same problem is with in_from_vn[1973]) that's being read in the always block IS in the sensitivity list but I get warning.
Can someone tell me what might be wrong and what the correct code should be to avoid this warning!?
Thanks
Alex

**************** THE WARNING ******************
Warning: /root/mycode/f.v:100: 'in_from_vn[1972]' is being read, but does not appear in the sensitivity list of the block. (ELAB-292)
..... 'in_from_vn[1973]' is being read, but does not appear in the sensitivity list of the block. (ELAB-292)

***************** THE RTL *************************
always @ (in_from_vn[1972][3:0] or in_from_vn[1973][3:0])
begin
if(in_from_vn[1972][3:0] < in_from_vn[1973][3:0])
begin min11_509=in_from_vn[1972][3:0]; min21_509=in_from_vn[1973][3:0]; inorder509_01=0; end
else
begin min11_509=in_from_vn[1973][3:0]; min21_509=in_from_vn[1972][3:0]; inorder509_01=1; end
end
 

Re: Why do I get this warning? " .... does not appear in the sensitivity list.....

Try using always @* instead.
 

Re: Why do I get this warning? " .... does not appear in the sensitivity list.....

Try using always @* instead.

I did try this and I get the same warning.
I have also changed in_from_vn[1973][3:0] to in_from_vn[1973] and I get the same warning
Thanks
Alex
 

Re: Why do I get this warning? " .... does not appear in the sensitivity list.....

Could just be the tool being rubbish.

You could try assigning in_from_vn[1972][3:0] and in_from_vn[1973][3:0] to two wires first, so you don't have an array in the sensitivity list.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…