Hi Arpad, Not sure why you think LRM doesnt support arrays. According to BNF (LRM 2.2): function_item_declaration ::= input_declaration | inout_declaration | output_declaration | block_item_declaration block_item_declaration ::= parameter_declaration | integer_declaration | real_declaration And if you look at integer_declaration and real_declaration integer_declaration ::= integer list_of_identifiers ; real_declaration ::= real list_of_identifiers ; list_of_identifiers ::= var_name { , var_name } var_name ::= variable_identifier | array_identifier array_range (The above is also detailed in section 3.1) cheers, Sri Muranyi, Arpad wrote: >I am just noticing (with disbelief) that analog functions >cannot take arrays as inputs (since I don't see any mention >of it in LRM v2.2). Is this observation/conclusion correct? > >analog function real maxValue; >input n1, n2 ; >real n1, n2 ; >begin >// code to compare potential of two signal >maxValue = (n1 > n2) ? n1 : n2 ; >end >endfunction > >Is there a way to make "n1" and/or "n2" an array? > >Thanks, > >Arpad >=========================================================== > > > -- Srikanth Chandrasekaran Design Technology (Adelaide) Freescale Semiconductor Ph: +61-(0)8-8168 3592 Fax: x3201Received on Thu Sep 15 16:36:27 2005
This archive was generated by hypermail 2.1.8 : Thu Sep 15 2005 - 16:36:46 PDT