Re: [sv-ec] parameters in classes

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Sun Jun 03 2007 - 09:29:29 PDT
>So is every parameter declared in a class a local parameter,
>or only if there are parameters defined in the class header?
 
Every parameter declared as a class_item is always already local,
regardless of whether there is a #(...) after the class_identifier.  See
 
    http://www.eda-stds.org/svdb/bug_view_page.php?bug_id=0001515
 
So the word 'class' should be removed from that 6.20.1 sentence.
(However, 'interface' and 'program' should be retained.)
 
-- Brad
 

________________________________

From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
Bresticker, Shalom
Sent: Saturday, June 02, 2007 11:34 PM
To: sv-ec@eda.org
Subject: [sv-ec] parameters in classes


  

Hi,

In Draft 3, Stu wrote in 6.20.1, "If any param_assignments appear in a
parameter_port_list, then any param_assignments that appear within the
module, interface, program or class shall become local parameters and
shall not be overridden by any method." Here Stu added "interface,
program, or class".

6.20.4 says, "Unlike nonlocal parameters, local parameters can be
declared in a generate block, in a package, or in a compilation-unit
scope. In these contexts, the parameter keyword can be used as a synonym
for the localparam keyword."

BNF footnote 39 (Mantis 1515) says, "39) In a parameter_declaration that
is a class_item, the parameter keyword shall be a synonym for the
localparam keyword."

So is every parameter declared in a class a local parameter, or only if
there are parameters defined in the class header?

What about interfaces and programs?

Thanks,

Shalom

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033 

 


-- 
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.



image001.gif
Received on Sun Jun 3 09:30:56 2007

This archive was generated by hypermail 2.1.8 : Sun Jun 03 2007 - 09:31:25 PDT