Comment out hartid and fpu from VortexBundle
These are mostly copied from Rocket and we're not sure they're necessary for Vortex.
This commit is contained in:
@@ -15,7 +15,7 @@ import tile.VortexTile
|
||||
class VortexBundle(tile: VortexTile)(implicit p: Parameters) extends CoreBundle {
|
||||
val clock = Input(Clock())
|
||||
val reset = Input(Reset())
|
||||
val hartid = Input(UInt(hartIdLen.W))
|
||||
// val hartid = Input(UInt(hartIdLen.W))
|
||||
val reset_vector = Input(UInt(resetVectorLen.W))
|
||||
val interrupts = Input(new CoreInterrupts())
|
||||
|
||||
@@ -33,7 +33,7 @@ class VortexBundle(tile: VortexTile)(implicit p: Parameters) extends CoreBundle
|
||||
val d = Flipped(tile.memNode.out.head._1.d.cloneType)
|
||||
}) else None
|
||||
|
||||
val fpu = Flipped(new FPUCoreIO())
|
||||
// val fpu = Flipped(new FPUCoreIO())
|
||||
//val rocc = Flipped(new RoCCCoreIO(nTotalRoCCCSRs))
|
||||
//val trace = Output(new TraceBundle)
|
||||
//val bpwatch = Output(Vec(coreParams.nBreakpoints, new BPWatch(coreParams.retireWidth)))
|
||||
|
||||
@@ -203,9 +203,11 @@ class VortexTileModuleImp(outer: VortexTile) extends BaseTileModuleImp(outer) {
|
||||
// outer.traceSourceNode.bundle <> core.io.trace
|
||||
core.io.traceStall := outer.traceAuxSinkNode.bundle.stall
|
||||
// outer.bpwatchSourceNode.bundle <> core.io.bpwatch
|
||||
core.io.hartid := outer.hartIdSinkNode.bundle
|
||||
require(core.io.hartid.getWidth >= outer.hartIdSinkNode.bundle.getWidth,
|
||||
s"core hartid wire (${core.io.hartid.getWidth}b) truncates external hartid wire (${outer.hartIdSinkNode.bundle.getWidth}b)")
|
||||
|
||||
// Copypasted from Rocket; not necessary for Vortex as hartId is set via Verilog parameter
|
||||
// core.io.hartid := outer.hartIdSinkNode.bundle
|
||||
// require(core.io.hartid.getWidth >= outer.hartIdSinkNode.bundle.getWidth,
|
||||
// s"core hartid wire (${core.io.hartid.getWidth}b) truncates external hartid wire (${outer.hartIdSinkNode.bundle.getWidth}b)")
|
||||
|
||||
if (outer.vortexParams.useVxCache) {
|
||||
println(s"width of a channel data ${core.io.mem.get.a.bits.data.getWidth}")
|
||||
@@ -245,7 +247,7 @@ class VortexTileModuleImp(outer: VortexTile) extends BaseTileModuleImp(outer) {
|
||||
}
|
||||
}
|
||||
|
||||
core.io.fpu := DontCare
|
||||
// core.io.fpu := DontCare
|
||||
|
||||
// TODO eliminate this redundancy
|
||||
// val h = dcachePorts.size
|
||||
@@ -257,6 +259,7 @@ class VortexTileModuleImp(outer: VortexTile) extends BaseTileModuleImp(outer) {
|
||||
// dcacheArb.io.requestor <> dcachePorts.toSeq
|
||||
}
|
||||
|
||||
// FIXME: unsure this is necessary
|
||||
trait HasFpuOpt { this: RocketTileModuleImp =>
|
||||
val fpuOpt = outer.tileParams.core.fpu.map(params => Module(new FPU(params)(outer.p)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user