Hi Ed, I suspect that you may have a misunderstanding about automatic variables. The following is contained in 6.21. There are more details contained in that section which might help clarify things for you. I believe that you are confusing "automatic variables" with "dynamic variables". "Data declared inside a module, interface or program, but outside a task, process, or function, are local in scope and static in lifetime (exist for the lifetime of the module, interface or program). This is roughly equivalent to C static data declared outside a function, which is local to a file." Neil Eduard Cerny wrote: > Hi, > > > > Suppose a module contains the following code: > > > > covergroup cg @(posedge clk); > > … > > endgroup > > > > cg cg_i = new(); > > > > cover property(p) cg_i.sample(); > > > > > > Then if I understand 2150 correctly, this code would be illegal because > cg_i is an automatic variable declared outside the action block. Yet, > this is a very common usage… Or did I misread what automatic variable is? > > > > Thank you, > > > > ed > > > > > > > > > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* <http://www.mailscanner.info/>, 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 Wed Feb 27 13:29:15 2008
This archive was generated by hypermail 2.1.8 : Wed Feb 27 2008 - 13:29:42 PST