Skip to content

Commit

Permalink
Merge pull request #358 from riscv-boom/deprecate-old-fb
Browse files Browse the repository at this point in the history
[ifu] Deprecate the old FetchBuffer.
  • Loading branch information
bkorpan committed Jul 27, 2019
2 parents e672f92 + 8cf76f0 commit f9499c7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 258 deletions.
2 changes: 0 additions & 2 deletions src/main/scala/common/parameters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ case class BoomCoreParams(
enableCustomRfModel: Boolean = true,
maxBrCount: Int = 4,
numFetchBufferEntries: Int = 16,
useNewFetchBuffer: Boolean = true,
enableAgePriorityIssue: Boolean = true,
enablePrefetching: Boolean = false,
enableBrResolutionRegister: Boolean = true,
Expand Down Expand Up @@ -158,7 +157,6 @@ trait HasBoomCoreParameters extends freechips.rocketchip.tile.HasCoreParameters
val maxBrCount = boomParams.maxBrCount // number of branches we can speculate simultaneously
val ftqSz = boomParams.ftq.nEntries // number of FTQ entries
val numFetchBufferEntries = boomParams.numFetchBufferEntries // number of instructions that stored between fetch&decode
val useNewFetchBuffer = boomParams.useNewFetchBuffer

val numIntPhysRegs= boomParams.numIntPhysRegisters // size of the integer physical register file
val numFpPhysRegs = boomParams.numFpPhysRegisters // size of the floating point physical register file
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/exu/core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ class BoomCore(implicit p: Parameters, edge: freechips.rocketchip.tilelink.TLEdg
dec_fire := (0 until coreWidth).map(w => dec_valids(w) && !dec_stalls(w))

// all decoders are empty and ready for new instructions
if (useNewFetchBuffer) dec_ready := dec_fire.last
else dec_ready := !dec_stalls.last
dec_ready := dec_fire.last

when (dec_ready || flush_ifu) {
dec_finished_mask := 0.U
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/ifu/fetch-control-unit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ class FetchControlUnit(implicit p: Parameters) extends BoomModule

val bchecker = Module (new BranchChecker)
val ftq = Module(new FetchTargetQueue(num_entries = ftqSz))
val fb = if (useNewFetchBuffer) Module(new FetchBuffer(numEntries=numFetchBufferEntries))
else Module(new OldFetchBuffer(numEntries=1<<log2Ceil(numFetchBufferEntries)))
val fb = Module(new FetchBuffer(numEntries=numFetchBufferEntries))
val monitor: Option[FetchMonitor] = (useFetchMonitor).option(Module(new FetchMonitor))

val br_unit = io.br_unit
Expand Down
252 changes: 0 additions & 252 deletions src/main/scala/ifu/old-fetch-buffer.scala

This file was deleted.

0 comments on commit f9499c7

Please sign in to comment.