File tree 4 files changed +5
-2
lines changed
4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ case class RocketCoreParams(
71
71
override def eLen = vector.map(_.eLen).getOrElse(0 )
72
72
override def vfLen = vector.map(_.vfLen).getOrElse(0 )
73
73
override def vfh = vector.map(_.vfh).getOrElse(false )
74
+ override def vExts = vector.map(_.vExts).getOrElse(Nil )
74
75
override def vMemDataBits = vector.map(_.vMemDataBits).getOrElse(0 )
75
76
override val customIsaExt = Option .when(haveCease)(" xrocket" ) // CEASE instruction
76
77
override def minFLen : Int = fpu.map(_.minFLen).getOrElse(32 )
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ case class RocketCoreVectorParams(
16
16
vMemDataBits : Int ,
17
17
decoder : Parameters => RocketVectorDecoder ,
18
18
useDCache : Boolean ,
19
- issueVConfig : Boolean
19
+ issueVConfig : Boolean ,
20
+ vExts : Seq [String ]
20
21
)
21
22
22
23
class VectorCoreIO (implicit p : Parameters ) extends CoreBundle ()(p) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ trait HasNonDiplomaticTileParameters {
125
125
Option .when(tileParams.core.useConditionalZero)(Seq (" zicond" )) ++
126
126
Some (Seq (" zicsr" , " zifencei" , " zihpm" )) ++
127
127
Option .when(tileParams.core.fpu.nonEmpty && tileParams.core.fpu.get.fLen >= 16 && tileParams.core.fpu.get.minFLen <= 16 )(Seq (" zfh" )) ++
128
- zvl ++ zve ++ zvfh ++
128
+ zvl ++ zve ++ zvfh ++ Some (tileParams.core.vExts) ++
129
129
tileParams.core.customIsaExt.map(Seq (_))
130
130
).flatten
131
131
val multiLetterString = multiLetterExt.mkString(" _" )
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ trait CoreParams {
69
69
def eLen : Int = 0
70
70
def vfLen : Int = 0
71
71
def vfh : Boolean = false
72
+ def vExts : Seq [String ] = Nil
72
73
def hasV : Boolean = vLen >= 128 && eLen >= 64 && vfLen >= 64
73
74
def vMemDataBits : Int = 0
74
75
}
You can’t perform that action at this time.
0 commit comments