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

Add PLRU eviction to L0 and L1 #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add PLRU eviction to L0 and L1 #9

wants to merge 3 commits into from

Conversation

micprog
Copy link
Member

@micprog micprog commented Feb 21, 2024

No description provided.

@micprog micprog changed the title Add plru tree to L0 Add PLRU eviction to L0 and L1 Feb 21, 2024
Comment on lines +231 to +242
if (evict_strb == hit_early) begin
evict_strb = 1 << cnt_d;
cnt_d = cnt_q + 2;
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to never evict the currently used cache line: pulp-platform/snitch#69

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a check to prevent the prefetch if the current line is being fetched (on the last commit on the branch), however I did not synthesize thus don't know the full timing implications.

micprog added 3 commits July 31, 2024 09:53
Current addition is directly with FFs in the handler, not re-using tag
storage.
@micprog micprog marked this pull request as ready for review July 31, 2024 13:53
@micprog micprog requested a review from paulsc96 as a code owner July 31, 2024 13:53
@micprog micprog requested a review from SamuelRiedel August 5, 2024 08:09
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

Successfully merging this pull request may close these issues.

2 participants