port dependence on localparams

From: Paul Graham (pgraham@cadence.com)
Date: Tue Jul 24 2001 - 10:50:39 PDT


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



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