Skip to content

Design a new prefetcher for fetching data from main memory to cache hierarchy. #30

Answered by rahulbera
szuhzw asked this question in Q&A
Discussion options

You must be logged in to vote

There are two ways to do this:

  • Option 1: (a) Define your own prefetcher in a separate file. E.g., if it's a L2 prefetcher, define it as myprefetcher.l2c_pref, if it's an LLC prefetcher, call it myprefetcher.llc_pref. (b) Build ChampSim with this prefetcher of choice (i.e., pass the prefetcher name in the build_champsim.sh script). See ChampSim documentation to know more.
  • Option 2: Define the internal logic of your prefetcher as we have done in scooby.cc. See the prefetcher/streamer.cc file for an easiest example. All you have to do is to (a) create a class for your prefetcher as a dervied class of Prefetcher (see inc/streamer.h for example), (b) define three key functions for this new pr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rahulbera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants