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.g44
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4
index 9d186762..2faef4e0 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -46,7 +46,7 @@ block
stmt
: 'wire' id ':' type
- | 'reg' id ':' type exp (exp exp)?
+ | 'reg' id ':' type exp ('with' ':' '{' 'reset' '=>' '(' exp exp ')' '}')?
| 'mem' id ':' '{' ( 'data-type' '=>' type
| 'depth' '=>' IntLit
| 'read-latency' '=>' IntLit
@@ -97,6 +97,8 @@ id
keyword
: dir
| 'inst'
+ | 'mem'
+ | 'reset'
;
// Parentheses are added as part of name because semantics require no space between primop and open parentheses