Add FPUParams.fLen option, decoupled from xLen
This commit is contained in:
@ -44,7 +44,7 @@ trait CoreParams {
|
||||
trait HasCoreParameters extends HasTileParameters {
|
||||
val coreParams: CoreParams = tileParams.core
|
||||
|
||||
val fLen = xLen // TODO relax this
|
||||
val fLen = coreParams.fpu.map(_.fLen).getOrElse(0)
|
||||
|
||||
val usingMulDiv = coreParams.mulDiv.nonEmpty
|
||||
val usingFPU = coreParams.fpu.nonEmpty
|
||||
|
@ -14,6 +14,7 @@ import freechips.rocketchip.util.property._
|
||||
import chisel3.internal.sourceinfo.SourceInfo
|
||||
|
||||
case class FPUParams(
|
||||
fLen: Int = 64,
|
||||
divSqrt: Boolean = true,
|
||||
sfmaLatency: Int = 3,
|
||||
dfmaLatency: Int = 4
|
||||
|
Reference in New Issue
Block a user