diff --git a/src/verilog.y b/src/verilog.y index 230207a61..ca53c686c 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -2969,17 +2969,9 @@ netSigList: // IEEE: list_of_port_identifiers ; netSig: // IEEE: net_decl_assignment - one element from list_of_port_identifiers - netId sigAttrListE - { $$ = VARDONEA($1, *$1, nullptr, $2); } - | netId sigAttrListE '=' expr - { $$ = VARDONEA($1, *$1, nullptr, $2); - AstDelay* const delayp = $$->delayp() ? $$->delayp()->unlinkFrBack() : nullptr; - AstAssignW* const assignp = new AstAssignW{$3, new AstParseRef{$1, VParseRefExp::PX_TEXT, *$1}, $4, delayp}; - if (GRAMMARP->m_netStrengthp) assignp->strengthSpecp(GRAMMARP->m_netStrengthp->cloneTree(false)); - AstNode::addNext($$, assignp); } - | netId variable_dimensionList sigAttrListE + netId variable_dimensionListE sigAttrListE { $$ = VARDONEA($1, *$1, $2, $3); } - | netId variable_dimensionList sigAttrListE '=' expr + | netId variable_dimensionListE sigAttrListE '=' expr { $$ = VARDONEA($1, *$1, $2, $3); AstDelay* const delayp = $$->delayp() ? $$->delayp()->unlinkFrBack() : nullptr; AstAssignW* const assignp = new AstAssignW{$4, new AstParseRef{$1, VParseRefExp::PX_TEXT, *$1}, $5, delayp};