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

FixedIO__Modules with various kinds of probe ports #4105

Merged
merged 13 commits into from
May 30, 2024
Prev Previous commit
Next Next commit
getMatchedFields: don't recurse through probes.
Provide similar behavior to getRecursiveFields (via DataMirror).
  • Loading branch information
dtzSiFive committed May 29, 2024
commit 4c8eac634f36c41aab4fb9aedfedcb6e49dfae29
12 changes: 12 additions & 0 deletions core/src/main/scala/chisel3/Data.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,18 @@ private[chisel3] object getMatchedFields {
}
)
Seq(x -> y)
case (_, _) if DataMirror.hasProbeTypeModifier(x) || DataMirror.hasProbeTypeModifier(y) => {
require(
x.typeEquivalent(y), {
mwachs5 marked this conversation as resolved.
Show resolved Hide resolved
val reason = x
.findFirstTypeMismatch(y, strictTypes = true, strictWidths = true, strictProbeInfo = true)
.map(s => s"\nbecause: $s")
.getOrElse("")
s"$x is not typeEquivalent to $y $reason"
}
)
Seq(x -> y)
}
case (x: Record, y: Record) =>
(x._elements
.zip(y._elements))
Expand Down
Loading