Skip to content

Commit

Permalink
refactor Breakpoint to chisel3. (#3041)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularityKChen authored Sep 13, 2022
1 parent 279a87f commit 05f27ea
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/scala/rocket/Breakpoint.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package freechips.rocketchip.rocket

import chisel3._
import chisel3.util.{Cat}
import Chisel.ImplicitConversions._
import freechips.rocketchip.config.Parameters
import freechips.rocketchip.tile.{CoreBundle, HasCoreParameters}
import freechips.rocketchip.util._
Expand Down Expand Up @@ -94,12 +93,12 @@ class BreakpointUnit(n: Int)(implicit val p: Parameters) extends Module with Has
val bpwatch = Output(Vec(n, new BPWatch(1)))
})

io.xcpt_if := false
io.xcpt_ld := false
io.xcpt_st := false
io.debug_if := false
io.debug_ld := false
io.debug_st := false
io.xcpt_if := false.B
io.xcpt_ld := false.B
io.xcpt_st := false.B
io.debug_if := false.B
io.debug_ld := false.B
io.debug_st := false.B

(io.bpwatch zip io.bp).foldLeft((true.B, true.B, true.B)) { case ((ri, wi, xi), (bpw, bp)) =>
val en = bp.control.enabled(io.status)
Expand Down

0 comments on commit 05f27ea

Please sign in to comment.