diff options
| author | Albert Magyar | 2019-09-11 18:16:20 -0700 |
|---|---|---|
| committer | Albert Magyar | 2019-09-30 16:22:01 -0700 |
| commit | a10084fbba0ba88a1f0517b826ef8de44d8760d1 (patch) | |
| tree | 8a1ac0098409dbb95a45d3b7107a4f6d59d8e166 /src/main/proto | |
| parent | 4ca2b859473e0a88723463eac2821cfbd3249c43 (diff) | |
Improve read-under-write parameter support
* Make the read-under-write (RUW) parameter typesafe
* Add RUW support to the FIRRTL proto and CHIRRTL grammar
Diffstat (limited to 'src/main/proto')
| -rw-r--r-- | src/main/proto/firrtl.proto | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/proto/firrtl.proto b/src/main/proto/firrtl.proto index b8f6db98..0cf14f41 100644 --- a/src/main/proto/firrtl.proto +++ b/src/main/proto/firrtl.proto @@ -104,6 +104,12 @@ message Firrtl { Expression init = 5; } + enum ReadUnderWrite { + UNDEFINED = 0; + OLD = 1; + NEW = 2; + } + message Memory { // Required. string id = 1; @@ -121,6 +127,7 @@ message Firrtl { repeated string reader_id = 6; repeated string writer_id = 7; repeated string readwriter_id = 8; + ReadUnderWrite read_under_write = 10; } message CMemory { @@ -138,6 +145,7 @@ message Firrtl { } // Required. bool sync_read = 3; + ReadUnderWrite read_under_write = 5; } message Instance { |
