-
Notifications
You must be signed in to change notification settings - Fork 745
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
refactor(ICache): follow new style guide #4338
Open
ngc7331
wants to merge
31
commits into
master
Choose a base branch
from
refactor-icache
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+3,090
−2,772
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
ngc7331
commented
Feb 28, 2025
•
edited
Loading
edited
- move InstrUncache out of package ICache (as it is actually a submodule of Ifu)
- each class in a separate file (except Bundles / Utils)
- module IO inside module class
- extract similar codes and define them as helper functions for reuse
- renames:
- camel cases
- unify bundle naming convention
- re-organize IO
7516977
to
87e40bd
Compare
[Generated by IPC robot]
master branch:
|
6b6ef31
to
14804c4
Compare
[Generated by IPC robot]
master branch:
|
397ce33
to
82598b7
Compare
[Generated by IPC robot]
master branch:
|
[Generated by IPC robot]
master branch:
|
... as it's actually submodule of Ifu
… to ICacheCtrlUnitParams
Naming: - I/O: - ICache inner use only: xxxBundle - Other modules use: ICacheXxxBundle, consider move to FrontendBundle.scala - Sram/register: xxxEntry Try avoiding directed Bundle, unless it's req-resp pair Add ICacheToIfuIO & move resp/perf/topdown/icacheReady into it - ICacheIO.toIFU / IFUICacheIO.icacheReady -> ICacheToIfuIO.fetchReady - ICacheIO.perfInfo / NewIFUIO.icachePerfInfo -> ICacheToIfuIO.perf - ICacheMainPipeBundle.topdown.* / IFUICacheIO.topdown* -> ICacheToIfuIO.topdown.* Add IfuToICacheIO & move stall into it - NewIFUIO.icacheStop / ICacheIO.stop -> IfuToICacheIO.stall Add FtqToICacheIO - ICacheIO.fetch -> FtqToICacheIO.fetchReq - ICacheIO.ftqPrefetch / FtqToPrefetchIO -> FtqToICacheIO.prefetchReq Other renames - ICacheIO.softPrefetch -> ICacheIO.softPrefetchReq
TODO: ICacheMainPipe & ICachePrefetchPipe we need to discuss how to deal with pipeline stage signals (sx_abc)
reused by ICachePrefetchPipe & ICacheWayLookup
0d46d6c
to
01719eb
Compare
we allow sx_lowerCamelCase for better readability
[Generated by IPC robot]
master branch:
|
[Generated by IPC robot]
master branch:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.