net discipline declaration and net discipline initial values

From: fabrice baray <fabrice_baray@mentor.com>
Date: Thu May 19 2011 - 01:12:15 PDT

Hello,

I was reading the §3.6.3 of the LRM 2.3.1 on the Net discipline declaration. In the example
of §3.6.3.2 it is written that we can initialize value with hierarchical identifier like this :

mechanical top.foo.w = 250.0;

But when I read the grammar rules I do not see this is possible :

/net_declaration ::= // from A.2.1.3
          ...
        | discipline_identifier [ range ] list_of_net_identifiers ;
        | discipline_identifier [ range ] list_of_net_decl_assignments ;
          ...
range ::= [ msb_constant_expression : lsb_constant_expression ] // from A.2.5
list_of_net_decl_assignments ::= net_decl_assignment { , net_decl_assignment } // from A.2.3
list_of_net_identifiers ::= ams_net_identifier { , ams_net_identifier }
net_decl_assignment ::= // from A.2.4
          net_identifier = expression
        | net_identifier { dimension } = constant_optional_arrayinit
ams_net_identifier ::=
          net_identifier { dimension }
        | hierarchical_net_identifier
/
The /net_decl_assignment/ production uses a /net_identifier/ and not an /ams_net_identifier/ and
this is the /ams_net_identifier/ which contains the /hierarchical_net_identifier/.

Do I make a mistake ?

Regards,
Fabrice

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu May 19 01:12:54 2011

This archive was generated by hypermail 2.1.8 : Thu May 19 2011 - 01:13:08 PDT