Skip to content

gem5 Simulation Time faster with caches than without #1624

Discussion options

You must be logged in to vote

The observation you're making about the increased simulation time for a RISC-V Timing CPU without caches is actually expected behavior in gem5. Let me break down why this happens.

Timing CPU Behavior:

  1. A TimingSimpleCPU in gem5 models a processor without microarchitectural timing details but with accurate memory timings. This means that while the CPU's internal execution isn't modeled in detail, memory interactions (such as accesses to main memory) are timed and can significantly affect performance.

Cache Impact:

  1. With Caches: When caches are present, frequently accessed data can be retrieved from the cache, which is significantly faster than accessing main memory (typically by orders o…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Skyfarmer007
Comment options

Answer selected by Skyfarmer007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants