diff options
| author | Christopher Celio | 2015-10-01 22:50:41 -0700 |
|---|---|---|
| committer | Christopher Celio | 2015-10-01 22:50:41 -0700 |
| commit | 37bfa06ae7e1dba3c55a1da84b9390d347446953 (patch) | |
| tree | 34d816ab487264f7e0025e1cc32a8616b06ea232 | |
| parent | b646629ae4a28d0f474f531b359d815348ee8c2f (diff) | |
Update README with Mem(seqRead) -> SeqMem()
| -rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -17,6 +17,21 @@ modifications are: val wire = Wire(Bits(width = 15)) ``` + - Sequential memories: + ``` + val addr = Reg(UInt()) + val mem = Mem(UInt(width=8), 1024, seqRead = true) + val dout = when(enable) { mem(addr) } + ``` + becomes (in Chisel3): + ``` + val addr = UInt() + val mem = SeqMem(1024, UInt(width=8)) + val dout = mem.read(addr, enable) + ``` + Notice the address register is now internal to the SeqMem(), but the data + will still return on the subsequent cycle. + ## Getting Started ### Overview |
