Hi Neil, I was suspicious about my understanding ... :-) thank you for the clarification. Ed > -----Original Message----- > From: Neil.Korpusik@Sun.COM [mailto:Neil.Korpusik@Sun.COM] > Sent: Wednesday, February 27, 2008 4:29 PM > To: Eduard Cerny > Cc: sv-ac@eda.org > Subject: Re: [sv-ac] problem with Mantis 2150 -automatic variables in > action block ? > > 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:38:07 2008
This archive was generated by hypermail 2.1.8 : Wed Feb 27 2008 - 13:38:22 PST