Skip to content

Commit

Permalink
Code review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adkian-sifive committed Dec 19, 2024
1 parent f46d276 commit dfd3245
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@ object v extends Module {
scalaCrossVersions.flatMap { ver =>
Seq(chisel(ver), stdlib(ver), unipublish)
} ++ scalaCrossVersions.filterNot(isScala3(_)).flatMap { ver2 =>
Seq(chisel(ver2).test, firrtl(ver2).test, svsim(ver2).test, integrationTests(ver2).test, litutility(ver2), panamaconverter(ver2), panamalib(ver2), panamaom(ver2))
Seq(
chisel(ver2).test,
firrtl(ver2).test,
svsim(ver2).test,
integrationTests(ver2).test,
litutility(ver2),
panamaconverter(ver2),
panamalib(ver2),
panamaom(ver2)
)
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/chisel3/BitsImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private[chisel3] trait BitsImpl extends Element { self: Bits =>
}

protected def _applyImpl(x: UInt)(implicit sourceInfo: SourceInfo): Bool =
extract(x)
_extractImpl(x)

protected def _applyImpl(x: Int, y: Int)(implicit sourceInfo: SourceInfo): UInt = {
if ((x < y && !(x == -1 && y == 0)) || y < 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private[chisel3] trait InstantiateImpl {
val modulePrefix = Module.currentModulePrefix
Builder.contextCache
.getOrElseUpdate(
CacheKey[A](boxAllData(args), tt, Seq(modulePrefix).toList), {
CacheKey[A](boxAllData(args), tt, List(modulePrefix)), {
// The definition needs to have no source locator because otherwise it will be unstably
// derived from the first invocation of Instantiate for the particular Module
Definition.apply(f(args))(UnlocatableSourceInfo)
Expand Down

0 comments on commit dfd3245

Please sign in to comment.