DataEquality
chisel3.Data.DataEquality
Provides generic, recursive equality for Bundle and Vec hardware. This avoids the need to use workarounds such as bundle1.asUInt === bundle2.asUInt by allowing users to instead write bundle1 === bundle2.
Static type safety of this comparison is guaranteed at compile time as the extension method requires the same parameterized type for both the left-hand and right-hand sides. It is, however, possible to get around this type safety using Bundle subtypes that can differ during runtime (e.g. through a generator). These cases are subsequently raised as elaboration errors.
Value parameters
- lhs
-
The Data hardware on the left-hand side of the equality
Attributes
- Source
- Data.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article