Skip to content

Commit

Permalink
Merge pull request #3537 from chipsalliance/vec-hotfix
Browse files Browse the repository at this point in the history
Support vector-units w/o L1D$ access
  • Loading branch information
sequencer committed Nov 25, 2023
2 parents 6b67317 + 5bef59a commit b3fa8df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/tile/BaseTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ trait HasNonDiplomaticTileParameters {

// TODO make HellaCacheIO diplomatic and remove this brittle collection of hacks
// Core PTW DTIM coprocessors
def dcacheArbPorts = 1 + usingVM.toInt + usingDataScratchpad.toInt + p(BuildRoCC).size + tileParams.core.useVector.toInt
def dcacheArbPorts = 1 + usingVM.toInt + usingDataScratchpad.toInt + p(BuildRoCC).size + (tileParams.core.useVector && tileParams.core.vectorUseDCache).toInt

// TODO merge with isaString in CSR.scala
def isaDTS: String = {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/tile/Core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ trait CoreParams {
val useAtomicsOnlyForIO: Boolean
val useCompressed: Boolean
val useVector: Boolean = false
val vectorUseDCache: Boolean = false
val useRVE: Boolean
val useConditionalZero: Boolean
val mulDiv: Option[MulDivParams]
Expand Down Expand Up @@ -113,7 +114,6 @@ trait HasCoreParameters extends HasTileParameters {
if (usingVector) {
require(isPow2(vLen), s"vLen ($vLen) must be a power of 2")
require(eLen >= 32 && vLen % eLen == 0, s"eLen must divide vLen ($vLen) and be no less than 32")
require(vMemDataBits >= eLen && vLen % vMemDataBits == 0, s"vMemDataBits ($vMemDataBits) must divide vLen ($vLen) and be no less than eLen ($eLen)")
}

lazy val hartIdLen: Int = p(MaxHartIdBits)
Expand Down

0 comments on commit b3fa8df

Please sign in to comment.