aboutsummaryrefslogtreecommitdiff
path: root/src/main/antlr4
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/antlr4')
-rw-r--r--src/main/antlr4/FIRRTL.g45
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4
index 1232b65f..4ceed9f0 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -78,6 +78,7 @@ dir
type
: 'UInt' ('<' IntLit '>')?
| 'SInt' ('<' IntLit '>')?
+ | 'Fixed' ('<' IntLit '>')? ('<' '<' IntLit '>' '>')?
| 'Clock'
| 'Analog' ('<' IntLit '>')?
| '{' field* '}' // Bundle
@@ -274,6 +275,10 @@ primop
| 'bits('
| 'head('
| 'tail('
+ | 'asFixedPoint('
+ | 'bpshl('
+ | 'bpshr('
+ | 'bpset('
;
/*------------------------------------------------------------------