cse378.tlb
Class TLBLine

java.lang.Object
  extended by cse378.AbstractLine
      extended by cse378.tlb.TLBLine

public class TLBLine
extends AbstractLine

Class representing a line in the TLB for CSE378 lab 5


Field Summary
 
Fields inherited from class cse378.AbstractLine
entries, entrySize, recent, sets, tagBits
 
Constructor Summary
TLBLine(int tagBits, int associativity)
           
 
Method Summary
 TLBEntry allocEntry()
          Pick an AbstractBlock to receive new data.
 TLBEntry getEntry(int index)
          getEntry returns the TLBEntry indexed by index
 TaggedBlock probe(BitField b)
          Added to ensure that only a VirtualPage can be used to probe
 TLBEntry probe(cse378.address.VirtualPage vp)
           
 java.lang.String toString()
           
 
Methods inherited from class cse378.AbstractLine
getLRU, indexCheck, setMRU
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TLBLine

public TLBLine(int tagBits,
               int associativity)
Method Detail

probe

public TaggedBlock probe(BitField b)
Added to ensure that only a VirtualPage can be used to probe

Overrides:
probe in class AbstractLine
Parameters:
b - tag in question
Returns:
AbstractBlock if found, null otherwise
Throws:
java.lang.RuntimeException

probe

public TLBEntry probe(cse378.address.VirtualPage vp)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEntry

public TLBEntry getEntry(int index)
getEntry returns the TLBEntry indexed by index

Overrides:
getEntry in class AbstractLine
Parameters:
index - TLBEntry within the TLBLine
Returns:
TLBEntry specified by index

allocEntry

public TLBEntry allocEntry()
Description copied from class: AbstractLine
Pick an AbstractBlock to receive new data.

Overrides:
allocEntry in class AbstractLine
Returns:
allocated AbstractBlock