From: Michael McNamara (mac@verisity.com)
Date: Tue Jul 24 2001 - 14:03:00 PDT
Paul Graham writes:
> Precedence: bulk
>
> Question: can a port be defined in terms of a localparam?
>
> I think of a localparam as the verilog equivalent of a vhdl constant
> declaration. A vhdl port cannot be defined in terms of a constant defined
> in the entity or architecture (although it can be defined in terms of a
> constant living in a package).
>
> 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).
>
> Paul
>
A localparam is exactly like a parameter; except with the added
restriction that a local param shall not be affected by defparam or
module instance parameter override.
Using your taxonomy, the local parameters are processed in stage
1. And yes, a parameter can depend on a local parameter.
-mac
This archive was generated by hypermail 2.1.4
: Mon Jul 08 2002 - 12:54:43 PDT
and
sponsored by Boyd Technology, Inc.