Skip to content

Commit

Permalink
all isaDTS strings to lowercase (chipsalliance#3333) (chipsalliance#3334
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 58c8249)

Co-authored-by: Yangyu Chen <cyy@cyyself.name>
  • Loading branch information
mergify[bot] and cyyself committed Jun 11, 2023
1 parent 6e7df3e commit 5c3553d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ case class RocketCoreParams(
val instBits: Int = if (useCompressed) 16 else 32
val lrscCycles: Int = 80 // worst case is 14 mispredicted branches + slop
val traceHasWdata: Boolean = false // ooo wb, so no wdata in trace
override val customIsaExt = Some("Xrocket") // CEASE instruction
override val customIsaExt = Some("xrocket") // CEASE instruction
override def minFLen: Int = fpu.map(_.minFLen).getOrElse(32)
override def customCSRs(implicit p: Parameters) = new RocketCustomCSRs
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/scala/tile/BaseTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ trait HasNonDiplomaticTileParameters {
// rdcycle[h], rdinstret[h] is implemented
// rdtime[h] is not implemented, and could be provided by software emulation
// see https://github.com/chipsalliance/rocket-chip/issues/3207
//Some(Seq("Zicntr")) ++
Some(Seq("Zicsr", "Zifencei", "Zihpm")) ++
Option.when(tileParams.core.fpu.nonEmpty && tileParams.core.fpu.get.fLen >= 16 && tileParams.core.fpu.get.minFLen <= 16)(Seq("Zfh")) ++
Option.when(tileParams.core.useBitManip)(Seq("Zba", "Zbb", "Zbc")) ++
Option.when(tileParams.core.hasBitManipCrypto)(Seq("Zbkb", "Zbkc", "Zbkx")) ++
Option.when(tileParams.core.useBitManip)(Seq("Zbs")) ++
Option.when(tileParams.core.useCryptoNIST)(Seq("Zknd", "Zkne", "Zknh")) ++
Option.when(tileParams.core.useCryptoSM)(Seq("Zksed", "Zksh")) ++
//Some(Seq("zicntr")) ++
Some(Seq("zicsr", "zifencei", "zihpm")) ++
Option.when(tileParams.core.fpu.nonEmpty && tileParams.core.fpu.get.fLen >= 16 && tileParams.core.fpu.get.minFLen <= 16)(Seq("zfh")) ++
Option.when(tileParams.core.useBitManip)(Seq("zba", "zbb", "zbc")) ++
Option.when(tileParams.core.hasBitManipCrypto)(Seq("zbkb", "zbkc", "zbkx")) ++
Option.when(tileParams.core.useBitManip)(Seq("zbs")) ++
Option.when(tileParams.core.useCryptoNIST)(Seq("zknd", "zkne", "zknh")) ++
Option.when(tileParams.core.useCryptoSM)(Seq("zksed", "zksh")) ++
tileParams.core.customIsaExt.map(Seq(_))
).flatten
val multiLetterString = multiLetterExt.mkString("_")
Expand Down

0 comments on commit 5c3553d

Please sign in to comment.