Re: [sv-ac] Updated version of 2328

From: ben cohen <hdlcohen@gmail.com>
Date: Sun Aug 07 2011 - 20:52:57 PDT

Scott,
Suggested resolution
In 16.5.1 Sampling
REPLACE
The default sampled value of any other variable or net is the default
value of the corresponding type (see 6.8, Table 6-7). For example, the
default sampled value of variable y of type logic is 1’bx.
The default sampled value of sequence methods triggered and matched is
1’b0.
[Ben] can’t find that statement in 16.5.1 in D1. Found this is 16.9.3
Sampled value functions
The initial value of a static variable is the value assigned in its
declaration, or, in the absence of such an assignment, it
is the default (or uninitialized) value of the corresponding type (see 6.8,
Table 6-7). The initial value of any
other variable or signal is the default value of the corresponding type (see
6.8, Table 6-7). For example, if
$sampled(y) is called at time 0, and y is of type logic, the value returned
is X.

— If an expression references an element of a dynamic data type that does
not exist when the value of the element is captured for assertion
evaluation, then the tool shall generate an error message. Any dynamic data
type elements captured for assertion evaluation shall continue to exist
within the scope of the assertion until the assertion evaluation completes.
[Ben] Which dynamic data type are we referring to here? From LRM
dynamic: Having values that can be resized or reallocated at run time.
Dynamic arrays, associative arrays,
queues, class handles, and data types that include such data types are
dynamic data types
Should we clarify which ones?

On Thu, Aug 4, 2011 at 11:51 AM, Little Scott-B11206
<B11206@freescale.com>wrote:

> Hi all:
>
> I have uploaded an updated version of 2328. Below is a summary of the
> changes. Please let me know if there are additional concerns. Also, if
> anyone has an answer to my question regarding event.triggered that would be
> great.
>
> Thanks,
> Scott
>
> -Manisha, Dmitry: Clarify the sentence about dynamic variables in the
> proposal.
> REPLACED
> If the expression references a dynamic variable and the value of that
> variable is not defined when the value is captured for evaluation, then the
> tool shall generate an error message. The value captured for evaluation
> shall be maintained until assertion evaluation is complete even if the
> object is destroyed.
> WITH (based on language in 13.5.2 as suggested in the meeting)
> If an expression references an element of a dynamic data type that does not
> exist when the value of the element is captured for assertion evaluation,
> then the tool shall generate an error message. Any dynamic data type
> elements captured for assertion evaluation shall continue to exist within
> the scope of the assertion until the assertion evaluation completes.
>
> -Manisha, Ed: Add an example clarifying the incurred penalties for sampling
> large dynamic variables.
>
> Added.
>
> Scott: Will disallow class members in assertions for the time being.
> ADDED: - Expressions shall not reference class properties.
>
> Dmitry: Need to add an explanation of event.triggered sampling.
>
> ADDED at the beginning of the proposal. I did not add a code example. This
> was requested during the SV-AC meeting. I am happy to add an example or
> enhance a current example to incorporate event.triggered, but I am not sure
> what concept should be illustrated. What is unique about event.triggered
> that should be clarified/highlighted in the example?
>
> Dmitry: Need to mention that this proposal is written on top of 3213.
> ADDED: Note to the editor: This proposal should be applied after mantis
> 3213. It makes changes using the text in 3213.
>
> -Expanded the timing example with additional explanation.
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, 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 Mon Aug 8 00:50:34 2011

This archive was generated by hypermail 2.1.8 : Mon Aug 08 2011 - 00:50:53 PDT