Re: port dependence on localparams

From: Stefen Boyd (stefen@boyd.com)
Date: Tue Jul 24 2001 - 11:52:45 PDT


At 10:50 AM 7/24/2001 -0700, Paul Graham wrote:
>My concern is that a tool may have the following order of processing:
>
> 1. process parameters
> 2. process ports (which may depend on parameters)
> 3. process other declarations and statements
>
>The question is should localparams be processed in part 1 or in part 3? If
>part 3, then clearly a port cannot depend on a localparam. (For that
>matter, a parameter cannot depend on a localparam).

Hi Paul,

You'll need to process them in part 1. Remember, the only
difference between parameter and localparam is that the
localparam cannot directly be set with a parameter override.
Naturally, they will be able to be set by a parameter,
and can be used anywhere inside the module you would use
a parameter... including in port declarations.

Regards,
   Stefen

<p><p>--------------------
Stefen Boyd Boyd Technology, Inc.
stefen@BoydTechInc.com (408)739-BOYD
www.BoydTechInc.com (408)739-1402 (fax)



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