From 57473f4c6a9f35752bb71fc7b8d6b54471aeaa07 Mon Sep 17 00:00:00 2001 From: azidar Date: Tue, 9 Feb 2016 13:14:52 -0800 Subject: CHIRRTL passes work, parser is updated --- src/main/antlr4/FIRRTL.g4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main/antlr4') diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4 index 6e6b972f..59de36dd 100644 --- a/src/main/antlr4/FIRRTL.g4 +++ b/src/main/antlr4/FIRRTL.g4 @@ -57,6 +57,9 @@ stmt | 'readwriter' '=>' id )* '}' + | 'cmem' id ':' type + | 'smem' id ':' type + | mdir 'mport' id '=' id '[' exp ']' exp | 'inst' id 'of' id | 'node' id '=' exp | exp '<=' exp @@ -68,6 +71,13 @@ stmt | 'skip' ; +mdir + : 'infer' + | 'read' + | 'write' + | 'rdwr' + ; + ruw : 'old' | 'new' @@ -129,6 +139,10 @@ keyword | 'undefined' | 'mux' | 'validif' + | 'write' + | 'read' + | 'rdwr' + | 'infer' ; // Parentheses are added as part of name because semantics require no space between primop and open parentheses -- cgit v1.2.3