cse378.tlb
Class TLB
java.lang.Object
cse378.tlb.TLB
public class TLB
- extends java.lang.Object
Method Summary |
protected BitField |
computeIndex(cse378.address.VirtualAddress location)
Compute the index of a particular location |
protected cse378.address.VirtualPage |
computeTag(cse378.address.VirtualAddress vaddr)
|
TLBEntry |
evict(cse378.address.VirtualAddress vaddr)
Invalidate the TLB entry |
java.lang.String |
getCounts()
|
protected TLBLine |
getLine(BitField vp)
|
Status |
getStatus()
|
protected TLBEntry |
probe(cse378.address.VirtualAddress vaddr,
boolean markRecent)
|
void |
read(cse378.address.VirtualAddress vaddr,
cse378.address.PhysicalPage page)
|
void |
write(cse378.address.VirtualAddress vaddr,
cse378.address.PhysicalPage page)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numLines
int numLines
numSets
int numSets
lines
TLBLine[] lines
hits
protected long hits
cleanMisses
protected long cleanMisses
dirtyMisses
protected long dirtyMisses
stat
Status stat
TLB
public TLB(Component c,
int lines,
int sets)
evict
public TLBEntry evict(cse378.address.VirtualAddress vaddr)
- Invalidate the TLB entry
- Parameters:
vaddr
-
- Returns:
- Invalidated entry
probe
protected TLBEntry probe(cse378.address.VirtualAddress vaddr,
boolean markRecent)
getStatus
public Status getStatus()
getLine
protected TLBLine getLine(BitField vp)
computeIndex
protected BitField computeIndex(cse378.address.VirtualAddress location)
- Compute the index of a particular location
- Parameters:
location
- location in memory to be wrote to
- Returns:
- integer that indexes into the lines in the cache
computeTag
protected cse378.address.VirtualPage computeTag(cse378.address.VirtualAddress vaddr)
read
public void read(cse378.address.VirtualAddress vaddr,
cse378.address.PhysicalPage page)
write
public void write(cse378.address.VirtualAddress vaddr,
cse378.address.PhysicalPage page)
getCounts
public java.lang.String getCounts()