aboutsummaryrefslogtreecommitdiff
path: root/src/main/antlr4/FIRRTL.g4
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/antlr4/FIRRTL.g4')
-rw-r--r--src/main/antlr4/FIRRTL.g414
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4
index 54ad8d0e..aa53f2f0 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -103,13 +103,17 @@ stmt
| exp '<-' exp info?
| exp 'is' 'invalid' info?
| when
- | 'stop(' exp exp intLit ')' info?
- | 'printf(' exp exp StringLit ( exp)* ')' info?
+ | 'stop(' exp exp intLit ')' stmtName? info?
+ | 'printf(' exp exp StringLit ( exp)* ')' stmtName? info?
| 'skip' info?
| 'attach' '(' exp+ ')' info?
- | 'assert' '(' exp exp exp StringLit ')' info?
- | 'assume' '(' exp exp exp StringLit ')' info?
- | 'cover' '(' exp exp exp StringLit ')' info?
+ | 'assert' '(' exp exp exp StringLit ')' stmtName? info?
+ | 'assume' '(' exp exp exp StringLit ')' stmtName? info?
+ | 'cover' '(' exp exp exp StringLit ')' stmtName? info?
+ ;
+
+stmtName
+ : ':' id
;
memField