|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cse378.AbstractLine
public abstract class AbstractLine
Abstract class representing a line in the cache or TLB A line has a number of Blocks, and keeps track of which is the least recently used
Field Summary | |
---|---|
protected TaggedBlock[] |
entries
|
protected int |
entrySize
|
protected java.util.LinkedList<TaggedBlock> |
recent
|
protected int |
sets
|
protected int |
tagBits
|
Constructor Summary | |
---|---|
AbstractLine()
|
Method Summary | |
---|---|
TaggedBlock |
allocEntry()
Pick an AbstractBlock to receive new data. |
TaggedBlock |
getEntry(int index)
getEntry returns the TaggedBlock indexed by index |
TaggedBlock |
getLRU()
getLRU return index of least recently used CacheEntry |
protected void |
indexCheck(int index)
Verify that an index into the line is valid |
TaggedBlock |
probe(BitField tag)
Test if there is a valid taggedEntry with a matching Tag |
void |
setMRU(TaggedBlock e)
setMRU makes indexed CacheEntry the MRU |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int sets
protected int tagBits
protected int entrySize
protected TaggedBlock[] entries
protected java.util.LinkedList<TaggedBlock> recent
Constructor Detail |
---|
public AbstractLine()
Method Detail |
---|
protected void indexCheck(int index)
index
- public void setMRU(TaggedBlock e)
index
- set of the cacheEntrypublic TaggedBlock getLRU()
index
- set of the cacheEntrypublic TaggedBlock getEntry(int index)
index
- AbstractBlock within the cacheline
public TaggedBlock allocEntry()
public TaggedBlock probe(BitField tag)
tag
- tag in question
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |