Skip to content

Commit

Permalink
simplebus/crossbar: clear inflightSrc register during reset (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
donlon authored Jun 25, 2022
1 parent 9009bec commit 6ad6840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/bus/simplebus/Crossbar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class SimpleBusCrossbarNto1(n: Int, userBits:Int = 0) extends Module {
(inputArb.io.in zip io.in.map(_.req)).map{ case (arb, in) => arb <> in }
val thisReq = inputArb.io.out
assert(!(thisReq.valid && !thisReq.bits.isRead() && !thisReq.bits.isWrite()))
val inflightSrc = Reg(UInt(log2Up(n).W))
val inflightSrc = RegInit(0.U(log2Up(n).W))

io.out.req.bits := thisReq.bits
// bind correct valid and ready signals
Expand Down

0 comments on commit 6ad6840

Please sign in to comment.