[sv-ac] problem with Mantis 2150 -automatic variables in action block ?

From: Eduard Cerny <Eduard.Cerny_at_.....>
Date: Wed Feb 27 2008 - 11:36:38 PST
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, and is
believed to be clean.
Received on Wed Feb 27 11:43:50 2008

This archive was generated by hypermail 2.1.8 : Wed Feb 27 2008 - 11:44:42 PST