RE: [sv-ec] parameters in classes

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sun Jun 03 2007 - 10:49:42 PDT
  

I myself pointed to that Mantis. So should classes be added to 6.20.4 as
well as deleted from 6.20.1?

I will also take the opportunity to repeat my displeasure at using the
parameter keyword to mean local parameter when there was no need for it
because the localparam keyword already exists. It just makes for
confusion. It is a sign of bad language design.

It is what Stu calls a gotcha. It looks like a parameter, but isn't.

Shalom

 

________________________________

From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On
Behalf Of Brad Pierce
Sent: Sunday, June 03, 2007 7:29 PM
To: sv-ec@server.eda.org
Subject: Re: [sv-ec] parameters in classes

 

>So is every parameter declared in a class a local parameter,

>or only if there are parameters defined in the class header?

 

Everyparameter declared as a class_item is always already local,
regardless of whether thereis a #(...) after the class_identifier.  See

 

   http://www.eda-stds.org/svdb/bug_view_page.php?bug_id=0001515

 

Sothe 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 <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 10:50:07 2007

This archive was generated by hypermail 2.1.8 : Sun Jun 03 2007 - 10:50:22 PDT