RE: [sv-ac] immediate assertions in always_comb

From: Kulshrestha, Manisha <Manisha_Kulshrestha_at_.....>
Date: Tue Sep 11 2007 - 03:30:48 PDT
Hi Doron,

 

I agree that 'c' should be part of sensitivity list in the equivalent
example. Jonathan as already pointed out the LRM section which makes it
clear.

 

Manisha

 

 

 

From: owner-sv-ac@server.eda.org [mailto:owner-sv-ac@server.eda.org] On
Behalf Of Bustan, Doron
Sent: Tuesday, September 11, 2007 3:34 PM
To: sv-ac@server.eda-stds.org
Subject: [sv-ac] immediate assertions in always_comb

 

Hi,

 

I have a question regarding immediate assertions in always_comb

 

 For example

 

always_comb

begin

  a = b; 

  assert (a ==c)

end

 

is similar  to

 

always @(b) 

begin

  a = b;

  assert (a == c)

end

 

so if "c" is not equal to "a" at times where "b" does not change, it
does not fail the assertion.

This is a bit counter intuitive to me since always comb models wiring.
It would have been 

more intuitive if c was added to the sensitivity list as well.

 

Do other people share my intuition? Any problem with adding all signals
that are not

on the left hand side of an assignment to the sensitivity list?

 

Doron

 

---------------------------------------------------------------------
Intel Israel (74) Limited
 
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Sep 11 03:31:28 2007

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2007 - 03:31:39 PDT