aboutsummaryrefslogtreecommitdiff
path: root/src/main/antlr4
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/antlr4')
-rw-r--r--src/main/antlr4/FIRRTL.g43
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4
index 59de36dd..e3e662ac 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -16,6 +16,7 @@ circuit
module
: 'module' id ':' '{' port* block '}'
+ | 'extmodule' id ':' '{' port* '}'
;
port
@@ -106,6 +107,7 @@ id
keyword
: 'circuit'
| 'module'
+ | 'extmodule'
| 'input'
| 'output'
| 'UInt'
@@ -140,6 +142,7 @@ keyword
| 'mux'
| 'validif'
| 'write'
+ | 'with'
| 'read'
| 'rdwr'
| 'infer'