Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/SpinalHDL/Data types/Int.rst
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ About Rounding: https://en.wikipedia.org/wiki/Rounding
The **RoundToEven** and **RoundToOdd** modes are very special, and are used in some big data statistical fields
with high accuracy concerns, SpinalHDL doesn't support them yet.

You will find ``ROUNDUP``, ``ROUNDDOWN``, ``ROUNDTOZERO``, ``ROUNDTOINF``, ``ROUNDTOEVEN``, ``ROUNTOODD`` are very close in behavior,
You will find ``ROUNDUP``, ``ROUNDDOWN``, ``ROUNDTOZERO``, ``ROUNDTOINF``, ``ROUNDTOEVEN``, ``ROUNDTOODD`` are very close in behavior,
``ROUNDTOINF`` is the most common. The behavior of rounding in different programming languages may be different.

============= =================== ================================================= ====================
Expand Down
2 changes: 1 addition & 1 deletion source/SpinalHDL/Libraries/regIf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Automatic address allocation

.. image:: /asset/image/regif/reg-auto-allocate.gif

Automatic filed allocation
Automatic field allocation

.. code:: scala

Expand Down
10 changes: 4 additions & 6 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/AFix.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ msgstr ""
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"POT-Creation-Date: 2026-02-11 09:50+0000\n"
"PO-Revision-Date: 2024-01-27 15:40+0000\n"
"Last-Translator: Readon <xydarcher@qq.com>\n"
"PO-Revision-Date: 2026-02-11 20:37+0800\n"
"Last-Translator: CatalpaEel\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdldata-typesafix/zh_Hans/>\n"
Expand Down Expand Up @@ -68,16 +68,14 @@ msgid "``AFix.U(12 bits)`` will have a range of 0 to 4095."
msgstr "``AFix.U(12 bits)`` 可表示的范围是 0 to 4095。"

#: ../../SpinalHDL/Data types/AFix.rst:46
#, fuzzy
msgid ""
"``AFix.SQ(8 bits, 4 bits)`` will have a range of -256 (internally "
"-4096*2^-4) to 255.9375 (internally 4095*2^-4)"
msgstr "``AFix.SQ(8 bits, 4 bits)`` 的范围为 -4096 (-256)4095 (255.9375)"
msgstr "``AFix.SQ(8 bits, 4 bits)`` 的范围为 -256 (内部值为-4096*2^-4) 到 255.9375(内部值为4095*2^-4)"

#: ../../SpinalHDL/Data types/AFix.rst:48
#, fuzzy
msgid "``AFix.U(8 exp, 4 exp)`` will have a range of 0 to 240 (internally 15*2^4)"
msgstr "``AFix.U(8 exp, 4 exp)`` 的范围为 0 到 256"
msgstr "``AFix.U(8 exp, 4 exp)`` 的范围为 0 到 240 (内部值为 15*2^4)"

#: ../../SpinalHDL/Data types/AFix.rst:51
msgid ""
Expand Down
19 changes: 7 additions & 12 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Fix.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ msgstr ""
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"POT-Creation-Date: 2026-02-11 09:50+0000\n"
"PO-Revision-Date: 2023-12-14 06:03+0000\n"
"Last-Translator: Readon <xydarcher@qq.com>\n"
"PO-Revision-Date: 2026-02-11 20:49+0800\n"
"Last-Translator: CatalpaEel\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdldata-typesfix/zh_Hans/>\n"
Expand Down Expand Up @@ -508,27 +508,24 @@ msgid "Name"
msgstr "名称"

#: ../../SpinalHDL/Data types/Fix.rst:274
#, fuzzy
msgid "x.minExp"
msgstr "x.minValue"
msgstr "x.minExp"

#: ../../SpinalHDL/Data types/Fix.rst:275
msgid "Return a negative number of bits used for the fractional part"
msgstr ""

#: ../../SpinalHDL/Data types/Fix.rst:276
#, fuzzy
msgid "Int"
msgstr "UInt"
msgstr "Int"

#: ../../SpinalHDL/Data types/Fix.rst:277
msgid "x.maxValue"
msgstr "x.maxValue"

#: ../../SpinalHDL/Data types/Fix.rst:278
#, fuzzy
msgid "Return the largest positive real number storable"
msgstr "返回可存储的最小值"
msgstr "返回可存储的最大正实数"

#: ../../SpinalHDL/Data types/Fix.rst:279 types/Fix.rst:282 types/Fix.rst:285
msgid "BigDecimal"
Expand All @@ -539,14 +536,12 @@ msgid "x.minValue"
msgstr "x.minValue"

#: ../../SpinalHDL/Data types/Fix.rst:281
#, fuzzy
msgid "Return the largest negative real number storable"
msgstr "返回可存储的最小值"
msgstr "返回可存储的最大负实数"

#: ../../SpinalHDL/Data types/Fix.rst:284
#, fuzzy
msgid "Return the smallest positive real number storable"
msgstr "返回可存储的最小值"
msgstr "返回可存储的最小正实数"

#~ msgid "Return the maximum value storable"
#~ msgstr "返回可存储的最大值"
Expand Down
32 changes: 11 additions & 21 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Int.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ msgstr ""
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"POT-Creation-Date: 2025-05-01 09:36+0000\n"
"PO-Revision-Date: 2024-01-13 05:06+0000\n"
"Last-Translator: tsy0123 <675526215@qq.com>\n"
"PO-Revision-Date: 2026-02-11 21:00+0800\n"
"Last-Translator: CatalpaEel\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdldata-typesint/zh_Hans/>\n"
Expand Down Expand Up @@ -330,13 +330,12 @@ msgid "Set all bits to the given Bool value"
msgstr "将所有位设置为给定的布尔值(Spinal Bool)"

#: ../../SpinalHDL/Data types/Int.rst:142
#, fuzzy
msgid ""
"Notice the difference in behavior between ``x >> 2`` (result 2 bit "
"narrower than x) and ``x >> U(2)`` (keeping width) due to the Scala type "
"of :code:`y`."
msgstr ""
"请注意由于 :code:`y` 的 Scala 类型原因, ``x >> 2`` (结果比 x 窄 2 位)和 ``x >> "
"请注意由于 :code:`y` 的 Scala 类型不同, ``x >> 2`` (结果比 x 窄 2 位)和 ``x >> "
"U(2)``(保持宽度)之间的行为有差异。"

#: ../../SpinalHDL/Data types/Int.rst:145
Expand Down Expand Up @@ -696,9 +695,8 @@ msgid "Static bit access of y-th bit"
msgstr "静态访问第 y 位"

#: ../../SpinalHDL/Data types/Int.rst:383
#, fuzzy
msgid "x(y: UInt)"
msgstr "x(y: Int)"
msgstr "x(y: UInt)"

#: ../../SpinalHDL/Data types/Int.rst:384
msgid "Variable bit access of y-th bit"
Expand Down Expand Up @@ -1014,16 +1012,14 @@ msgid "About Rounding: https://en.wikipedia.org/wiki/Rounding"
msgstr "关于舍入运算: https://en.wikipedia.org/wiki/Rounding"

#: ../../SpinalHDL/Data types/Int.rst
#, fuzzy
msgid "Spinal HDL"
msgstr "SpinalHDL"
msgstr "Spinal HDL"

#: ../../SpinalHDL/Data types/Int.rst
msgid "name"
msgstr ""

#: ../../SpinalHDL/Data types/Int.rst
#, fuzzy
msgid "Wikipedia"
msgstr "维基百科中的名称"

Expand All @@ -1032,24 +1028,20 @@ msgid "API"
msgstr "API"

#: ../../SpinalHDL/Data types/Int.rst
#, fuzzy
msgid "Mathematic"
msgstr "算术运算"
msgstr "数学运算"

#: ../../SpinalHDL/Data types/Int.rst
#, fuzzy
msgid "Algorithm"
msgstr "算术运算"
msgstr "算法"

#: ../../SpinalHDL/Data types/Int.rst
#, fuzzy
msgid "return"
msgstr "返回类型"

#: ../../SpinalHDL/Data types/Int.rst
#, fuzzy
msgid "(align=false)"
msgstr "返回类型(align=false)"
msgstr "(align=false)"

#: ../../SpinalHDL/Data types/Int.rst
msgid "Sup-"
Expand Down Expand Up @@ -1252,20 +1244,18 @@ msgid ""
"different programming languages may be different."
msgstr ""
"你会发现 "
"`ROUNDUP`、`ROUNDDOWN`、`ROUNDTOZERO`、`ROUNDTOINF`、`ROUNDTOEVEN`、`ROUNTOODD`"
"`ROUNDUP`、`ROUNDDOWN`、`ROUNDTOZERO`、`ROUNDTOINF`、`ROUNDTOEVEN`、`ROUNDTOODD`"
" 在行为上非常接近,`ROUNDTOINF` 是最常见的。不同编程语言中的舍入行为可能不同。"

#: ../../SpinalHDL/Data types/Int.rst:594
#, fuzzy
msgid "language"
msgstr "范围"
msgstr "语言"

#: ../../SpinalHDL/Data types/Int.rst:594
msgid "default-RoundType"
msgstr "默认舍入类型"

#: ../../SpinalHDL/Data types/Int.rst:594
#, fuzzy
msgid "example"
msgstr "示例"

Expand Down Expand Up @@ -1295,7 +1285,7 @@ msgstr "python2"

#: ../../SpinalHDL/Data types/Int.rst:600
msgid "python3"
msgstr "蟒蛇3"
msgstr "python3"

#: ../../SpinalHDL/Data types/Int.rst
msgid "``round(1.5) == round(2.5) == 2``"
Expand Down
5 changes: 1 addition & 4 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/Vec.po
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ msgid "This constructor supports mixed element width."
msgstr "此构造函数支持混合宽度的元素。"

#: ../../SpinalHDL/Data types/Vec.rst:31
#, fuzzy
msgid "Vec.fill(n1, n2, ...)(type: Data)"
msgstr "Vec.fill(size: Int)(type: Data)"
msgstr "Vec.fill(n1, n2, ...)(type: Data)"

#: ../../SpinalHDL/Data types/Vec.rst:32
msgid "Create a multi-dimensional vector. Supports up to 5 dimensions"
Expand Down Expand Up @@ -175,7 +174,6 @@ msgid "x.sCount(condition: T => Bool)"
msgstr "x.sCount(condition: T => Bool)"

#: ../../SpinalHDL/Data types/Vec.rst:166
#, fuzzy
msgid "Count the number of occurrence matching a given condition in the Vec."
msgstr "计算 Vec 中与给定条件匹配的次数。"

Expand All @@ -188,7 +186,6 @@ msgid "x.sCount(value: T)"
msgstr "x.sCount(value: T)"

#: ../../SpinalHDL/Data types/Vec.rst:169
#, fuzzy
msgid "Count the number of occurrence of a value in the Vec."
msgstr "计算 Vec 中某个值出现的次数。"

Expand Down
16 changes: 6 additions & 10 deletions source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bool.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ msgstr ""
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <LL@li.org>MIME-Version:1.0Content-"
"Type:text/plain; charset=UTF-8\n"
"POT-Creation-Date: 2025-02-12 09:08+0000\n"
"PO-Revision-Date: 2024-01-13 05:06+0000\n"
"Last-Translator: tsy0123 <675526215@qq.com>\n"
"PO-Revision-Date: 2026-02-11 20:47+0800\n"
"Last-Translator: CatalpaEel\n"
"Language: zh_CN\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects"
"/spinaldoc-rtd/spinalhdldata-typesbool/zh_Hans/>\n"
Expand All @@ -37,27 +37,25 @@ msgid "Description"
msgstr "描述"

#: ../../SpinalHDL/Data types/bool.rst:9
#, fuzzy
msgid ""
"The ``Bool`` type corresponds to a boolean value (True or False) or a "
"single bit/signal used in a hardware design. While named similarly it "
"should not be confused with Scala `Boolean` type which does not describe "
"hardware but truth values in the Scala generator code."
msgstr ""
"``Bool`` 类型对应于硬件设计中使用的布尔值(True 或 False)或单个位/线。虽然名称类似,但不应与 Scala `Boolean`"
"``Bool`` 类型对应于硬件设计中使用的布尔值(True 或 False)或单个比特/信号。虽然名称类似,但不应与 Scala `Boolean`"
" 类型混淆,后者不描述硬件,而是描述 Scala 生成器代码中的真值。"

#: ../../SpinalHDL/Data types/bool.rst:14
#, fuzzy
msgid ""
"An important concept and rule-of-thumb to understand is that the Scala "
"`Boolean` type is used in places where elaboration-time HDL code-"
"generation decision making is occurring in Scala code. Like any regular "
"program it affects execution of the Scala program that is SpinalHDL at "
"the time the program is being run to perform HDL code generation."
msgstr ""
"需要理解的一个重要概念和经验是,Scala `Boolean` 类型用于在实例细化时决定如何生成 HDL 代码。与任何常规程序一样,在运行 "
"SpinalHDL 程序以执行 HDL 代码生成时,它会影响 Scala 程序的执行。"
"需要理解的一个重要概念和经验是,Scala `Boolean` 类型用于在实例细化时决定如何生成 HDL 代码。与任何常规程序一样,"
"它会影响 SpinalHDL 这一 Scala 程序在运行以执行 HDL 代码生成时的执行过程。"

#: ../../SpinalHDL/Data types/bool.rst:20
msgid ""
Expand Down Expand Up @@ -99,7 +97,6 @@ msgstr ""
"实例指示它是给定赋值的源(提供状态)还是接收器(捕获状态)。"

#: ../../SpinalHDL/Data types/bool.rst:37
#, fuzzy
msgid ""
"Multiple uses of the assignment operator are allowed, such that it is "
"normal for a signal to act as a source (provides a value to drive HDL "
Expand Down Expand Up @@ -315,15 +312,14 @@ msgid ""
msgstr "所有边缘检测函数都将通过 :ref:`RegNext <regnext>` 实例化一个附加寄存器,以获取相关 ``Bool`` 的延迟值(一拍)。"

#: ../../SpinalHDL/Data types/bool.rst:178
#, fuzzy
msgid ""
"This feature does not reconfigure a D-type flip-flop to use an "
"alternative CLK source, it uses two D-type flip-flop in series chain "
"(with both CLK pins inheriting the default ClockDomain). It has "
"combinational logic to perform edge detection based on the output Q "
"states."
msgstr ""
"此功能不会重新配置 D 型触发器以使用其他 CLK 时钟,它使用串联链中的两个 D 型触发器(两个 CLK 引脚都继承默认的 "
"此功能不会重新配置 D 型触发器以使用其他 CLK 时钟,而是采用两个 D 型触发器串联(两者 CLK 引脚都继承默认的 "
"ClockDomain)。它具有组合逻辑,可根据输出 Q 状态进行边缘检测。"

#: ../../SpinalHDL/Data types/bool.rst:190
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ msgid ":ref:`Floating-point <Floating>` numbers (experimental support)"
msgstr ":ref:`Floating-point <Floating>` 浮点小数(实验性支持)"

#: ../../SpinalHDL/Data types/index.rst:22
#, fuzzy
msgid ""
"Additionally, if you want to assign a don't care value to some hardware, "
"for instance, to provide a default value, you can use the assignDontCare "
Expand Down
Loading