[sv-ac] Q: clock inference for $past in sequence

From: Seligman, Erik <erik.seligman@intel.com>
Date: Fri Aug 08 2014 - 09:09:10 PDT
In a sequence, is a sampled value function required to infer a clock from the sequence declaration, rather than the sequence instantiation?     This is how tools I'm using interpret the current LRM language in 16.9.3, though this difference vs the ##n operator seems counter-intuitive for some users.

If this is correct, was it done intentionally, or is it an unintended side effect of our wording?

-----------------

// Code below generates compile error due to no clock for $past, even though clock is in context when sequence instantiated
sequence sig_is_stable(sig);
  (sig == $past(sig,1));
endsequence

property prop3(untyped sig, int upto);
   @(posedge clk) disable iff(reset) trigger |-> sig_is_stable(sig).matched;
endproperty

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Aug 8 09:09:54 2014

This archive was generated by hypermail 2.1.8 : Fri Aug 08 2014 - 09:11:12 PDT