Skip to content

Commit

Permalink
Merge pull request #535 from sequencer/remove_deprecations
Browse files Browse the repository at this point in the history
Remove deprecations for Chisel 3.5
  • Loading branch information
jerryz123 committed Apr 8, 2021
2 parents 7892f79 + 7fd33b7 commit add38db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/main/scala/ifu/bpd/ras.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package boom.ifu

import chisel3._
import chisel3.util._
import chisel3.core.{withReset}
import chisel3.internal.sourceinfo.{SourceInfo}

import freechips.rocketchip.config._
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/ifu/bpd/sw_predictor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class SwBranchPredictorBank(implicit p: Parameters) extends BranchPredictorBank(
val pred_harness = Module(new BranchPredictorHarness)

btb_harness.io.clock := clock
btb_harness.io.reset := reset.toBool
btb_harness.io.reset := reset.asBool

pred_harness.io.clock := clock
pred_harness.io.reset := reset.toBool
pred_harness.io.reset := reset.asBool


btb_harness.io.req_valid := s1_valid
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/ifu/fetch-buffer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class FetchBuffer(implicit p: Parameters) extends BoomModule
}

// TODO Is this necessary?
when (reset.toBool) {
when (reset.asBool) {
io.deq.bits.uops map { u => u.valid := false.B }
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/ifu/frontend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,12 @@ class BoomFrontendModule(outer: BoomFrontend) extends LazyModuleImp(outer)
// **** F3 ****
// --------------------------------------------------------
val f3_clear = WireInit(false.B)
val f3 = withReset(reset.toBool || f3_clear) {
val f3 = withReset(reset.asBool || f3_clear) {
Module(new Queue(new FrontendResp, 1, pipe=true, flow=false)) }

// Queue up the bpd resp as well, incase f4 backpressures f3
// This is "flow" because the response (enq) arrives in f3, not f2
val f3_bpd_resp = withReset(reset.toBool || f3_clear) {
val f3_bpd_resp = withReset(reset.asBool || f3_clear) {
Module(new Queue(new BranchPredictionBundle, 1, pipe=true, flow=true)) }


Expand Down Expand Up @@ -855,7 +855,7 @@ class BoomFrontendModule(outer: BoomFrontend) extends LazyModuleImp(outer)
// **** F4 ****
// -------------------------------------------------------
val f4_clear = WireInit(false.B)
val f4 = withReset(reset.toBool || f4_clear) {
val f4 = withReset(reset.asBool || f4_clear) {
Module(new Queue(new FetchBundle, 1, pipe=true, flow=false))}

val fb = Module(new FetchBuffer)
Expand Down

0 comments on commit add38db

Please sign in to comment.