I think this was an oversight in the BNF. It should be legal. ________________________________ From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of Surya Pratik Saha Sent: Friday, August 01, 2008 1:58 AM To: sv-ec@server.eda.org; sv-bc@server.eda.org Subject: [sv-ec] Dynamic type parameter array Hi, As per 1800 2005 SV LRM BNF, parameter array rule is defined as: param_assignment ::= parameter_identifier { unpacked_dimension } = constant_param_expression unpacked_dimension ::= [ constant_range ] | [ constant_expression ] So, by BNF parameter can't be declared with dynamic type (associative or queue or dynamic). But can we declare dynamic type parameter array by using typedef. Is the e.g. legal: module top; typedef int myassoc[*]; parameter int myparam1[*] = '{default:1}; // illegal parameter myassoc myparam2 = '{default:1}; // Is it legal endmodule If 2nd declaration is legal then why BNF restricts the 1st declaration. -- Regards Surya -- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Fri Aug 1 07:18:35 2008
This archive was generated by hypermail 2.1.8 : Fri Aug 01 2008 - 07:20:52 PDT