-
Notifications
You must be signed in to change notification settings - Fork 0
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 d_cahce cheet sheet #90
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
## A | ||
- **Allocation** : The transaction(request) that enters the transaction queue (TQ) | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## B | ||
|
||
## C | ||
- **Cache line (CL)** : A block of contiguous memory addresses that are fetched from main memory and stored together in the cache. In our cache line its 128bits. | ||
## D | ||
|
||
## E | ||
- **Evict** : The process of erasing data from the cache to fill with new one. | ||
- **Evict(dirty evict)** : The remove data is not in the far memory(FM) yet and it must be updated there before it will be removed. | ||
- **Evict(silent/clean evict)** : The removed data has not been changed or already been updated in the far memory(FM). So it can be removed without any need to update thefar memory(FM). | ||
|
||
## F | ||
- **Fill** : Process of bringing data from far memory(FM) into the Cache. | ||
- **FM** : Far memory. Refers to main memory storage. Mostly slow and big. | ||
- **Free** : A cache line (CL) that is either currently unoccupied or contains data that can be safely overwritten, usually because it has been evicted or invalidated. | ||
## G | ||
|
||
## H | ||
- **Hit** : Requested data is in the cache. | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## I | ||
|
||
## J | ||
|
||
## K | ||
|
||
## L | ||
|
||
## M | ||
- **MB** : Merge buffer. Buffer that located inside the Transaction queue entry(TQ) used to merge CL of 128 width with shorter data like word, half word and bytes. | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- **Modified** : Modified data is data that been changed inside the cache and has not been stored back into far memory(FM) causing the far memory(FM) to be not updated. | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- **Miss(Read)** : Requested data is not in the cache | ||
- **Miss(Write)** : Core refers to an address that its data not in the cache meaning that we have to fill it first. | ||
|
||
## N | ||
|
||
## O | ||
- **Offset** : The position of the data within a cache line, indicating the exact byte or word location. | ||
## P | ||
|
||
## Q | ||
|
||
## R | ||
- **Re-issue** : Action taken when an instruction or a data request cannot be immediately completed due to a cache miss or some other delay, and must be attempted again later. In that situation the request temporary removed from pipeline for other requests. | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- **Read modify write** : Process of modifying data by first reading it, update (modify) and write back. For example: If we want to update word in a cache line than we first read the cache line and merge it using merge buffer with the write data. | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## S | ||
- **Set** : A group of cache lines where data from any given block of main memory can be placed, according to the cache's set-associativity. | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
## T | ||
- **Tag** : A portion of the physical memory address used to indicate the memory chunk ID from the far memory(FM). | ||
roman012285 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- **Transaction queue (TQ)** : Mechanism used to manage and sequence the interactions (transactions) between the cache, the main memory and the core. | ||
A buffer or list that holds pending memory operations (such as reads, writes) that need to be executed by the cache system. This queue helps organize the order in which memory transactions should be processed, optimizing the cache's performance and ensuring consistency and efficiency in data handling. | ||
|
||
## U | ||
|
||
## V | ||
- **Valid** : Data inside the cache (CL) that not a garbage. For example: When access a CL in the first time for read before its been written the data there is not valid yet. | ||
- **Victim** : When the cache set is full and we need to store new data, we have to erase "old" data from it. The erased data is called victim. | ||
## W | ||
|
||
## X | ||
|
||
## Y | ||
|
||
## Z | ||
|
||
|
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review my comments