mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Match Verilog-Perl: Fix parse error on min:typ:max delay pairs
git-svn-id: file://localhost/svn/verilator/trunk/verilator@1018 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
parent
61fbab1910
commit
bd60cf12f8
@ -562,7 +562,7 @@ int V3PreProcImp::getRawToken() {
|
||||
if (m_lineAdd) {
|
||||
m_lineAdd--;
|
||||
m_rawAtBol = true;
|
||||
yytext="\n"; yyleng=1;
|
||||
yytext=(char*)"\n"; yyleng=1;
|
||||
return (VP_TEXT);
|
||||
}
|
||||
if (m_lineCmt!="") {
|
||||
|
@ -382,7 +382,7 @@ class AstSenTree;
|
||||
%type<nodep> modItem modItemList modItemListE modOrGenItem
|
||||
%type<nodep> generateRegion
|
||||
%type<nodep> genItem genItemList genItemBegin genItemBlock genTopBlock genCaseListE genCaseList
|
||||
%type<nodep> dlyTerm
|
||||
%type<nodep> dlyTerm minTypMax
|
||||
%type<fileline> delay
|
||||
%type<varp> sigAndAttr sigId sigIdRange sigList regsig regsigList regSigId
|
||||
%type<varp> netSig netSigList
|
||||
@ -696,9 +696,9 @@ delayE: /* empty */ { }
|
||||
;
|
||||
|
||||
delay: '#' dlyTerm { $$ = $1; } /* ignored */
|
||||
| '#' '(' dlyInParen ')' { $$ = $1; } /* ignored */
|
||||
| '#' '(' dlyInParen ',' dlyInParen ')' { $$ = $1; } /* ignored */
|
||||
| '#' '(' dlyInParen ',' dlyInParen ',' dlyInParen ')' { $$ = $1; } /* ignored */
|
||||
| '#' '(' minTypMax ')' { $$ = $1; } /* ignored */
|
||||
| '#' '(' minTypMax ',' minTypMax ')' { $$ = $1; } /* ignored */
|
||||
| '#' '(' minTypMax ',' minTypMax ',' minTypMax ')' { $$ = $1; } /* ignored */
|
||||
;
|
||||
|
||||
dlyTerm: yaID { $$ = NULL; }
|
||||
@ -706,7 +706,9 @@ dlyTerm: yaID { $$ = NULL; }
|
||||
| yaFLOATNUM { $$ = NULL; }
|
||||
;
|
||||
|
||||
dlyInParen: dlyTerm { } /* ignored */
|
||||
// IEEE: mintypmax_expression and constant_mintypmax_expression
|
||||
minTypMax: expr { $$ = $1; } /* ignored */
|
||||
| expr ':' expr ':' expr { $$ = $1; } /* ignored */
|
||||
;
|
||||
|
||||
sigAndAttr: sigId sigAttrListE { $$ = $1; }
|
||||
|
Loading…
Reference in New Issue
Block a user