Skip to content

Commit

Permalink
OBUS switch sel should only use the reset value'
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed May 11, 2024
1 parent c159d4a commit 5e127bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/util/Switcher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ class TLSwitch(implicit p: Parameters) extends LazyModule {
val sel = if (nOut == 1) None else Some(Input(UInt(log2Ceil(nOut).W)))
})

val sel = io.sel.getOrElse(0.U)
// Use the link io.sel indicates when reset is deasserted
val sel = RegInit(io.sel.getOrElse(0.U(1.W)))
val bundleIn = node.in(0)._1
val bundlesOut = node.out.map(_._1)

Expand Down

0 comments on commit 5e127bb

Please sign in to comment.