From: Brophy, Dennis (dennisb@model.com)
Date: Mon Aug 11 2003 - 13:06:34 PDT
Precedence: bulk
All,
In regards to issue 211 we discussed this morning, the implementation of localparam in ModelSim appears to be consistent with the LRM. It may be that the words which appear in the LRM do not match the intent of the team.
In 12.2.2.1, the override of values by an ordered list shall follow the order of declaration. When a localparam is sandwiched between two other non-local parameters, it is not possible to pass in the two parameters since the second value would be targeted to the localparam by LRM definition.
If the intention was to "skip" a localparam, the LRM needs to be modified. Otherwise, a compliant implementation should issue an error. That is, the code shown in 211 should be flagged as an error and I think the LRM is clear on that point:
12.2.2.1 Parameter value assignment by ordered list
The order of the assignments in the module instance parameter value
assignment by ordered list shall follow the order of declaration of
the parameters within the module. It is not necessary to assign values
to all of the parameters within a module when using this method. However,
it is not possible to skip over a parameter.
-Dennis
-- Dennis Brophy Email: dennisb@model.com Director of Strategic Business Development Phone: +1 503-685-0893 Model Technology Fax: +1 503-685-0923 8005 Boeckman Rd, Bldg E-4 Mobile: +1 503-706-8987 Wilsonville, OR 97070-7777 Home Fax: +1 503-579-2664
This archive was generated by hypermail 2.1.4
: Mon Aug 11 2003 - 13:09:04 PDT
and
sponsored by Boyd Technology, Inc.