Re: localparam vs. parameter in subprogram

From: Shalom Bresticker (Shalom.Bresticker@motorola.com)
Date: Thu Jun 28 2001 - 07:55:02 PDT


<x-html>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Paul,
<p>A regular parameter may be redefined by a defparam statement.
<br>A localparam may not.
<p>Shalom
<br>
<p>Paul Graham wrote:
<blockquote TYPE=CITE>Cliff,
<p>Perhaps you or one of the verilog experts can clarify an implementation
<br>detail.
<p>The new rules for functions and tasks say that a function or task may
<br>contain localparam declarations as well as parameter declarations.
As far
<br>as I can tell, a parameter in a function or task is equivalent to a
<br>localparam in a function or task. Is there any difference that
you know of?
<p>I'm asking because it will simplify some implementation details if I
treat
<br>localparams and parameters in a function or task identically.
<p>I'm aware that localparams and parameters are distict at the module
level.
<p>Paul</blockquote>

<pre>--
**************************************************************************
Shalom Bresticker Shalom.Bresticker@motorola.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522890
**************************************************************************</pre>
 </html>

</x-html>



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:40 PDT and
sponsored by Boyd Technology, Inc.