mortbopet / Ripes

A graphical processor simulator and assembly editor for the RISC-V ISA
https://ripes.me/
MIT License
2.57k stars 274 forks source link

How to simulate no cache #214

Closed gits00 closed 2 years ago

gits00 commented 2 years ago

Hi, I am new to Ripes. Can the simulator be used with no cache configured? I need to see the effect on execution time with a particular cache config and one with no cache at all. Thanks.

mortbopet commented 2 years ago

Hi @gits00

When you say execution time, what do you exactly mean? The time that it takes for your own computer to simulate a program, or the simulated execution time of a program (# instructions retired relative to # of cycles executed)?

If the latter (which i assume), then it's important to recognize that the Ripes cache simulator does not simulate memory access latency. And by extension, the simulated execution time of the program is not affected by the cache configuration.
The cache simulator is (for now) only meant to simulate the interactions between a program and a given cache configuration.