Skip to content

Commit

Permalink
Fix extraction-width warnings in Debug SBA.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Apr 25, 2024
1 parent 31e1ed8 commit 7960fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/devices/debug/SBA.scala
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class SBToTL(implicit p: Parameters) extends LazyModule {
val counter = RegInit(0.U((log2Ceil(cfg.maxSupportedSBAccess/8)+1).W))
val vecData = Wire(Vec(cfg.maxSupportedSBAccess/8, UInt(8.W)))
vecData.zipWithIndex.map { case (vd, i) => vd := io.dataIn(8*i+7,8*i) }
muxedData := vecData(counter)
muxedData := vecData(counter(log2Ceil(vecData.size)-1,0))

// Need an additional check to determine if address is safe for Get/Put
val rdLegal_addr = edge.manager.supportsGetSafe(io.addrIn, io.sizeIn, Some(TransferSizes(1,cfg.maxSupportedSBAccess/8)))
Expand Down

0 comments on commit 7960fe8

Please sign in to comment.