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

Memory Hierarchy After the Simulation #2278

Open
dmukherj09 opened this issue Nov 29, 2023 · 2 comments
Open

Memory Hierarchy After the Simulation #2278

dmukherj09 opened this issue Nov 29, 2023 · 2 comments

Comments

@dmukherj09
Copy link

dmukherj09 commented Nov 29, 2023

Whenever I connect any type of memory system (CramSim/DramSim3/SimpleMem) with a setup of cache hierarchy which is driven by either some generic test-cpu/prospero-trace-based/ariel-binary-based, after the simulation is complete, I don't see all the remaining data in cahe being flushe back to the main memory model.

Even during the simulation, I don't see any WRITE operation at the main memory, which is okay logically as when any WRITE is required and if the data is not in the cache hierarchy, it is first READ from the main memory and then gets written to in the cache, but that should be followed up with all the remaining final data in all the cache hierarchies to be flushed to the main memory.

Am I doing something wrong or is it intended purpose?

@hughes-c
Copy link
Member

There is no cache flush at the end of the simulation. I believe that @gvoskuilen was working on something to enable that but right now, you can only flush a single cache line. So, in the epilogue, you would need to flush each individual cache line to make it visible at the end of the simulation.

@dmukherj09
Copy link
Author

dmukherj09 commented Dec 1, 2023

Hi @hughes-c, thanks for the reply.
Can you help me to figure out how to flush the cache lines one by one for now?

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

No branches or pull requests

3 participants