opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[ibex] Enable instruction cache (icache)?

Open imphil opened this issue 6 years ago • 5 comments

We have enabled the icache in bronze, but not yet in master. The icache design and verification have completed, should we enable it to get master closer to what it is supposed to look?

https://github.com/lowRISC/opentitan/blob/master/hw/top_earlgrey/data/top_earlgrey.sv.tpl#L208

@tomroberts-lowrisc

imphil avatar Sep 22 '20 08:09 imphil

As an extra data point: @udinator pinged me a couple of weeks ago, and it sounds like he's thinking about turning on the ICache in the UVM core tests for Ibex. I don't think that's happened yet. For "maximum-derisking", I wonder whether it would make sense to do that first?

rswarbrick avatar Sep 22 '20 08:09 rswarbrick

Agree it makes sense to get up and running in the Ibex DV first. In the meantime we can check it doesn't break other things - specifically synthesis flows (due to the RAMs). Maybe @msfschaffner could give it a try at some point and confirm all is ok.

tomeroberts avatar Sep 22 '20 09:09 tomeroberts

Agreed, I'll open an issue in Ibex to get some feedback before enabling the Icache there.

udinator avatar Sep 22 '20 16:09 udinator

@udinator just FYI you could run into some issues with flash when icache is turned on. I added some flash buffering some time ago, but the existing tests can't really stress it since the reads are not back to back cycles.

With icache i expect the instruction fetches will be packed, and maybe something will surface.

tjaychen avatar Sep 24 '20 19:09 tjaychen

ah thanks for letting me know @tjaychen, I'll keep an eye out.

udinator avatar Sep 24 '20 20:09 udinator