Subject: Re: Generate & defparams in Vlog-2001.
From: Stefen Boyd (stefen@boyd.com)
Date: Thu Aug 09 2001 - 14:37:46 PDT
At 01:35 PM 8/9/2001 -0700, Krishna Garlapati wrote:
>parameter_identifier ::= identifier
>
>identifier ::= simple_identifier
> | escaped identifier
>
>simple_identifier : [a-zA-Z_] {[a-zA-Z0-9_$]}
>
>For a usage like :
>
>defparam somename[0].myflop = 1;
>
>
>I don't see any mention of '[' or ']' being
>a part of identifier. The usage is legal
>but inconsistent with the grammar.
Krishna,
Looks like your only problem is assuming that the
BNF was correct... Looks like we need a hierarchical
parameter identifier. Something like:
param_assignment ::= hierarchical_parameter_identifier = constant_expression
but then we'll have to define hierarchical_parameter_identifier.
Looks like this was also broken in 1364-1995.
Regards,
Stefen
--------------------
Stefen Boyd Boyd Technology, Inc.
stefen@BoydTechInc.com (408)739-BOYD
www.BoydTechInc.com (408)739-1402 (fax)
This archive was generated by hypermail 2b28 : Thu Aug 09 2001 - 14:56:54 PDT