Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support vector-units w/o L1D$ access (copy #3537) #3540

Merged
merged 4 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading