1
0

clean up D$ store data unit

This commit is contained in:
Andrew Waterman 2012-03-01 18:49:00 -08:00
parent de73eef409
commit 4c3f7a36ce

View File

@ -90,8 +90,8 @@ class ioTileLink extends Bundle {
val xact_finish = (new ioDecoupled) { new TransactionFinish() }.flip
}
trait CoherencePolicy {
def cpuCmdToRW( cmd: Bits): (Bool, Bool) = {
object cpuCmdToRW {
def apply(cmd: Bits): (Bool, Bool) = {
val store = (cmd === M_XWR)
val load = (cmd === M_XRD)
val amo = cmd(3).toBool
@ -101,6 +101,9 @@ trait CoherencePolicy {
}
}
trait CoherencePolicy {
}
trait ThreeStateIncoherence extends CoherencePolicy {
val tileInvalid :: tileClean :: tileDirty :: Nil = Enum(3){ UFix() }