Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Strobe writes broken in TileTester. #56

Open
jdeters opened this issue Sep 26, 2022 · 0 comments
Open

Strobe writes broken in TileTester. #56

jdeters opened this issue Sep 26, 2022 · 0 comments

Comments

@jdeters
Copy link

jdeters commented Sep 26, 2022

The way that strobe writes are implemented in TileTester.scala is broken. As it is now, it creates a Wire 70 bits long and writes junk data to the testing memory. I fixed with the following lines of code:

val blastBytes = nasti.dataBits / 8
val write = (VecInit.tabulate(blastBytes)(byte => (Mux(dut.io.nasti.w.bits.strb(byte), dut.io.nasti.w.bits.data, _mem(addr + off)))(8 * (byte + 1) - 1, 8 * byte))).asUInt

I don't know if this would be the preferred fix, but I just wanted to let you all know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant