From a10084fbba0ba88a1f0517b826ef8de44d8760d1 Mon Sep 17 00:00:00 2001 From: Albert Magyar Date: Wed, 11 Sep 2019 18:16:20 -0700 Subject: Improve read-under-write parameter support * Make the read-under-write (RUW) parameter typesafe * Add RUW support to the FIRRTL proto and CHIRRTL grammar --- src/main/antlr4/FIRRTL.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/antlr4') diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4 index c3b4e74e..be15ab7c 100644 --- a/src/main/antlr4/FIRRTL.g4 +++ b/src/main/antlr4/FIRRTL.g4 @@ -94,7 +94,7 @@ stmt | 'reg' id ':' type exp ('with' ':' reset_block)? info? | 'mem' id ':' info? INDENT memField* DEDENT | 'cmem' id ':' type info? - | 'smem' id ':' type info? + | 'smem' id ':' type ruw? info? | mdir 'mport' id '=' id '[' exp ']' exp info? | 'inst' id 'of' id info? | 'node' id '=' exp info? -- cgit v1.2.3