diff options
| author | Schuyler Eldridge | 2021-08-05 17:29:42 -0400 |
|---|---|---|
| committer | GitHub | 2021-08-05 21:29:42 +0000 |
| commit | 8abf3085e3efb2b6dd3e123f13577b367d3f2695 (patch) | |
| tree | 8a0d3841c28f10f586a92352e0c2ddd194e6e6d2 /src | |
| parent | 747b37471892c98f05b083c815c74d1c24edd416 (diff) | |
Fix Specification Memory Port Types (#2319)
Correct incorrect type specified for memories in the FIRRTL
specification. This is important because the memory type determines
what is a legal bundle to try to connect to a memory port.
I based this off of FIRRTL accepting the following circuit:
circuit MemOrder:
module MemOrder:
input r: {addr : UInt<3>, en : UInt<1>, clk : Clock, flip data : UInt<1>}
input w: {addr : UInt<3>, en : UInt<1>, clk : Clock, data : UInt<1>, mask : UInt<1>}
input rw: {addr : UInt<3>, en : UInt<1>, clk : Clock, flip rdata : UInt<1>, wmode : UInt<1>, wdata : UInt<1>, wmask : UInt<1>}
mem memory:
data-type => UInt<1>
depth => 8
reader => r
writer => w
readwriter => rw
read-latency => 1
write-latency => 1
read-under-write => undefined
memory.r <= r
memory.w <= w
memory.rw <= rw
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
