Re: Clarification on NOW and BREAK


Subject: Re: Clarification on NOW and BREAK
From: Craig Winters (cwinters@cadence.com)
Date: Thu Oct 11 2001 - 08:56:32 PDT


Tom Kazmierski wrote:

>
> 2. Can a break occur in a simultaneous statement?
>
> You suggest further, that the LRM does not prevent a break from
> occurring in a procedural simultaneous statement. This is incorrect,
> as section 15.4 of the LRM quite specific:
>
> "(...) It is also an error if a wait statement, a break statement,
> or a signal assignment statement occurs in the procedural
> statement part."

I am aware of this rule, but does it exclude the case of a break
statement in a
subprogram called from within the simultaneous procedural statement?

More generally, is the following function valid:

FUNCTION foo (x : Real) RETURN Real IS
BEGIN
   BREAK WHEN x < 0.0;
   RETURN x;
END;

If it is, then could it be called from a simultaneous statement (simple
or procedural)
with the argument being a quantity value?

If that is the case, then a break can occur between iterations of the
analog solver, which is the case I am hoping to rule out.

Thank you for your prompt response.

Craig Winters
Cadence Design Systems
cwinters@cadence.com <mailto:cwinters@cadence.com>



This archive was generated by hypermail 2b28 : Thu Oct 11 2001 - 09:09:20 PDT