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, and is
believed to be clean.
Received on Fri Aug 1 02:00:25 2008