forked from github/verilator
Fix wire declarations with size and not range, bug466.
This commit is contained in:
parent
801b718953
commit
b5f5b1fdf9
2
Changes
2
Changes
@ -13,6 +13,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
||||
|
||||
**** Fix some delayed assignments of typedefed unpacked arrays.
|
||||
|
||||
**** Fix wire declarations with size and not range, bug466. [Alex Solomatnikov]
|
||||
|
||||
**** Fix parameter pin vs. normal pin error, bug704. [Alex Solomatnikov]
|
||||
|
||||
|
||||
|
@ -1879,7 +1879,7 @@ netSigList<varp>: // IEEE: list_of_port_identifiers
|
||||
netSig<varp>: // IEEE: net_decl_assignment - one element from list_of_port_identifiers
|
||||
netId sigAttrListE { $$ = VARDONEA($<fl>1,*$1, NULL, $2); }
|
||||
| netId sigAttrListE '=' expr { $$ = VARDONEA($<fl>1,*$1, NULL, $2); $$->addNext(new AstAssignW($3,new AstVarRef($3,$$->name(),true),$4)); }
|
||||
| netId rangeList sigAttrListE { $$ = VARDONEA($<fl>1,*$1, $2, $3); }
|
||||
| netId variable_dimensionList sigAttrListE { $$ = VARDONEA($<fl>1,*$1, $2, $3); }
|
||||
;
|
||||
|
||||
netId<strp>:
|
||||
|
@ -12,6 +12,7 @@ module t (/*AUTOARG*/
|
||||
|
||||
// verilator lint_off LITENDIAN
|
||||
wire [7:0] array [2:0][1:3];
|
||||
wire [7:0] arrayNoColon [2][3];
|
||||
// verilator lint_on LITENDIAN
|
||||
|
||||
integer cyc; initial cyc=0;
|
||||
|
Loading…
Reference in New Issue
Block a user