From b6b348201050161ebfdac1cb50d8ce044bdf89fc Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 5 May 2020 20:42:19 -0400 Subject: [PATCH] Internals: Use typ delay by default --- src/V3LinkJump.cpp | 11 ++++++++--- src/verilog.y | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/V3LinkJump.cpp b/src/V3LinkJump.cpp index 097cdbc9a..867e2a66a 100644 --- a/src/V3LinkJump.cpp +++ b/src/V3LinkJump.cpp @@ -16,9 +16,14 @@ // V3LinkJump's Transformations: // // Each module: -// Look for BEGINs -// BEGIN(VAR...) -> VAR ... {renamed} -// FOR -> WHILEs +// Look for BEGINs +// BEGIN(VAR...) -> VAR ... {renamed} +// FOR -> WHILEs +// +// Add JumpLabel which branches to after statements within JumpLabel +// RETURN -> JUMPLABEL(statements with RETURN changed to JUMPGO) +// WHILE(... BREAK) -> JUMPLABEL(WHILE(... statements with BREAK changed to JUMPGO) +// WHILE(... CONTINUE) -> WHILE(JUMPLABEL(... statements with CONTINUE changed to JUMPGO) // //************************************************************************* diff --git a/src/verilog.y b/src/verilog.y index d61235675..7227e84e3 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -2329,7 +2329,7 @@ delayExpr: minTypMax: // IEEE: mintypmax_expression and constant_mintypmax_expression delayExpr { $$ = $1; } - | delayExpr ':' delayExpr ':' delayExpr { $$ = $1; DEL($3); DEL($5); } + | delayExpr ':' delayExpr ':' delayExpr { $$ = $3; DEL($1); DEL($5); } ; netSigList: // IEEE: list_of_port_identifiers