Re: [sv-bc] Function return values

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Mar 01 2007 - 13:11:52 PST
Two issues --

   1)  Declaring a module or interface as automatic changes more than
just the behavior of the subroutines declared within it.  It also
changes the behavior of the always blocks.

   2)  Even if didn't change the behavior of the always blocks, it would
only be marginally more convenient to write 'automatic' on every module,
interface and package declaration instead of on every function within
them.

-- Brad

-----Original Message-----
From: Steven Sharp [mailto:sharp@cadence.com] 
Sent: Thursday, March 01, 2007 12:59 PM
To: sv-bc@eda-stds.org; Brad.Pierce@synopsys.COM
Subject: RE: [sv-bc] Function return values


>From: "Brad Pierce" <Brad.Pierce@synopsys.com>

>I agree.  The default lifetime for *all* functions should be automatic.

It wouldn't be backward compatible.


>There ought to at least be a standard compiler directive for making 
>that so.

There is already the ability to apply the automatic qualifier to a
design unit to make that the default within that unit.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 1 13:12:10 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 01 2007 - 13:12:15 PST