Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on sw-controlled interface for flushing cache blocks #23

Open
OrkunAliOzkan opened this issue Aug 11, 2023 · 5 comments
Open

Comments

@OrkunAliOzkan
Copy link

Hi,

I have integrated the L2 cache into the rocketchip provided by chipsalliance, and I would like to run a cache flush, but I do not know how to invoke this, would anyone have any related .asm showing the command in use or reference to any docs?

Thanks :)

@rralf
Copy link

rralf commented Feb 29, 2024

Yep, this is what I'd like to know as well. Were you able to find some documentation?

@jerryz123
Copy link
Contributor

Unfortunately not, but the interface is not complex.Writing physical addresses into the flush64 memory-mapped register is all that is necessary.

@rralf
Copy link

rralf commented Mar 1, 2024

Thanks a bunch Jerry. I just found the Control.scala that helped a lot. Just a question: Besides the flush64 command, is there a way to invalidate the cache? I need it for a benchmark.

@jerryz123
Copy link
Contributor

No, unfortunately not.

@rralf
Copy link

rralf commented Mar 1, 2024

Ah damn, I already assumed that. I'll try to implement it.

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

No branches or pull requests

3 participants