-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
23 deletions.
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
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
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
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 |
---|---|---|
@@ -1,9 +1,33 @@ | ||
package vexiiriscv.execute.lsu | ||
|
||
import spinal.core.Bundle | ||
import spinal.core.fiber.{Handle, Retainer} | ||
import spinal.lib._ | ||
import spinal.lib.system.tag.PmaRegion | ||
|
||
import scala.collection.mutable.ArrayBuffer | ||
|
||
trait LsuCachelessBusProvider { | ||
def getLsuCachelessBus() : LsuCachelessBus | ||
} | ||
|
||
trait CmoService{ | ||
def withSoftwarePrefetch : Boolean | ||
} | ||
|
||
case class LsuL1InvalidationCmd() extends Bundle //Empty for now | ||
case class LsuL1InvalidationBus() extends Bundle { | ||
val cmd = Stream(LsuL1InvalidationCmd()) | ||
} | ||
trait LsuService{ | ||
val invalidationRetainer = Retainer() | ||
val invalidationPorts = ArrayBuffer[LsuL1InvalidationBus]() | ||
def newInvalidationPort() = invalidationPorts.addRet(LsuL1InvalidationBus()) | ||
def lsuCommitProbe : Flow[LsuCommitProbe] | ||
def getBlockSize : Int | ||
} | ||
|
||
trait LsuL1Service{ | ||
def withCoherency : Boolean | ||
val regions = Handle[ArrayBuffer[PmaRegion]]() | ||
} |
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
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