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
Copy file name to clipboardExpand all lines: source/locale/gettext/SpinalHDL/Other language features/report.pot
+34-2Lines changed: 34 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ msgid ""
8
8
msgstr ""
9
9
"Project-Id-Version: SpinalHDL \n"
10
10
"Report-Msgid-Bugs-To: \n"
11
-
"POT-Creation-Date: 2025-01-06 12:16+0000\n"
11
+
"POT-Creation-Date: 2025-05-29 08:51+0000\n"
12
12
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -33,9 +33,41 @@ msgid "Since SpinalHDL 1.4.4, the following syntax is also supported:"
33
33
msgstr""
34
34
35
35
#: ../../SpinalHDL/Other language features/report.rst:33
36
-
msgid"You can display the current simulation time using the REPORT_TIME object"
36
+
msgid"You can display the current simulation time using the `REPORT_TIME` object:"
37
37
msgstr""
38
38
39
39
#: ../../SpinalHDL/Other language features/report.rst:39
40
40
msgid"will result in:"
41
41
msgstr""
42
+
43
+
#: ../../SpinalHDL/Other language features/report.rst:45
44
+
msgid"**Automatic Handling of Scala Primitive Types (SpinalHDL ^1.12.2)**"
45
+
msgstr""
46
+
47
+
#: ../../SpinalHDL/Other language features/report.rst:47
48
+
msgid"You can embed Scala primitive types (e.g., `Int`, `Boolean`, `Float`, `BigInt`, `BigDecimal`, `Char`, `Byte`, `Short`, `Long`) within `L\"\"` interpolated strings without explicit `.toString()` calls."
49
+
msgstr""
50
+
51
+
#: ../../SpinalHDL/Other language features/report.rst:63
52
+
msgid"**Structured Reporting for Complex Data Types (like Bundles) (SpinalHDL ^1.12.2)**"
53
+
msgstr""
54
+
55
+
#: ../../SpinalHDL/Other language features/report.rst:65
56
+
msgid"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."
57
+
msgstr""
58
+
59
+
#: ../../SpinalHDL/Other language features/report.rst:67
60
+
msgid"First, define a `Formattable` trait and implement it in your Bundles:"
61
+
msgstr""
62
+
63
+
#: ../../SpinalHDL/Other language features/report.rst:94
64
+
msgid"Then, you can report the entire structure:"
65
+
msgstr""
66
+
67
+
#: ../../SpinalHDL/Other language features/report.rst:104
68
+
msgid"This will produce a compact, readable output like:"
69
+
msgstr""
70
+
71
+
#: ../../SpinalHDL/Other language features/report.rst:107
0 commit comments