You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Structured Reporting for Complex Data Types (like Bundles) (SpinalHDL ^1.12.2)**
64
+
65
+
For `Bundle`s or other complex data structures, you can define a `Formattable` trait and implement a `format()` method returning `Seq[Any]` to define a structured, nested representation. This allows for clean, one-line reporting of entire complex objects.
66
+
67
+
First, define a `Formattable` trait and implement it in your Bundles:
68
+
69
+
.. code-block:: scala
70
+
71
+
trait Formattable {
72
+
def format(): Seq[Any]
73
+
}
74
+
75
+
case class DataPayload() extends Bundle with Formattable {
0 commit comments