Skip to content

Commit

Permalink
[scala3] Fix Scala3 difference in Probe API (#4591)
Browse files Browse the repository at this point in the history
The Probe.apply API is supposed to take a second argument of type `Layer`.
However, this was incorrectly taking an argument of type `Option[Layer]`.
Revert to the former.

Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge authored Jan 4, 2025
1 parent e45609e commit 81896e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala-3/chisel3/probe/Probe.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ object Probe extends ProbeBase {
def apply[T <: Data](source: => T)(using sourceInfo: SourceInfo): T =
super.apply(source, false, None)

def apply[T <: Data](source: => T, color: Option[layer.Layer])(using sourceInfo: SourceInfo): T =
super.apply(source, false, color)
def apply[T <: Data](source: => T, color: layer.Layer)(using sourceInfo: SourceInfo): T =
super.apply(source, false, Some(color))
}

object RWProbe extends ProbeBase with SourceInfoDoc {
Expand Down

0 comments on commit 81896e6

Please sign in to comment.