aboutsummaryrefslogtreecommitdiff
path: root/src/main/antlr4
diff options
context:
space:
mode:
authorazidar2016-02-09 14:48:12 -0800
committerazidar2016-02-09 18:57:08 -0800
commitbb5f68948c6d75d1f02c614f3e0ae4ef9bc6e689 (patch)
tree0ac38af05f64eb454d2c0925f34f5dae53d41f61 /src/main/antlr4
parent57473f4c6a9f35752bb71fc7b8d6b54471aeaa07 (diff)
Added remaining check passes. Ready for open sourcing
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'