Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typo in ExtractFromVecSizeZero warning message #4029

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/scala/chisel3/Aggregate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ sealed class Vec[T <: Data] private[chisel3] (gen: => T, val length: Int) extend
}

if (length == 0) {
Builder.warning(Warning(WarningID.ExtractFromVecSizeZero, s"Cannot extra from Vec of size 0."))
Builder.warning(Warning(WarningID.ExtractFromVecSizeZero, s"Cannot extract from Vec of size 0."))
} else {
p.widthOption.foreach { pWidth =>
val correctWidth = BigInt(length - 1).bitLength
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class WarningConfigurationSpec extends AnyFunSpec with Matchers with chiselTests
it("should number ExtractFromVecSizeZero as 6") {
val args = Array("--warn-conf", "id=6:e,any:s", "--throw-on-first-error")
val e = the[Exception] thrownBy ChiselStage.emitCHIRRTL(new ExtractFromVecSizeZero, args)
e.getMessage should include("[W006] Cannot extra from Vec of size 0")
e.getMessage should include("[W006] Cannot extract from Vec of size 0")
}
}
}
Loading