Re: [sv-bc] RE: functional if statement

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Tue Dec 09 2008 - 11:27:30 PST
> SystemVerilog added automatic lifetimes to individual modules
> so that all embedded task and function definitions
> have an automatic lifetimes.

A reason this SV feature is little used is that adding the 'automatic' qualifier to a module also changes the lifetime of variables declared in begin-end blocks.

     "An optional qualifier can be used to specify the default lifetime of all variables declared in a task, function, or block defined within a module, interface, package, or program. The lifetime qualifier is automatic or static. The default lifetime is static."

So in such a module, only global variables (or those explicitly declared 'static') hold their values across iterations of an always procedure.

-- Brad



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Dec 9 11:28:11 2008

This archive was generated by hypermail 2.1.8 : Tue Dec 09 2008 - 11:28:41 PST