-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d11bc1f
commit 0dd5fe2
Showing
2 changed files
with
78 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: SpinalHDL \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-01-02 16:09+0000\n" | ||
"POT-Creation-Date: 2024-05-13 16:04+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -452,7 +452,7 @@ msgid "Static bit access of y-th bit" | |
msgstr "" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:265 | ||
msgid "x(x: UInt)" | ||
msgid "x(y: UInt)" | ||
msgstr "" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:266 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
|
||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-Date:2023-12-" | ||
"01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME " | ||
"<EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN <[email protected]>Plural-" | ||
"Forms:nplurals=1; plural=0;MIME-Version:1.0Content-Type:text/plain; " | ||
"charset=UTF-8\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23+0800PO-" | ||
"Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME <EMAIL@ADDRESS" | ||
">Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-Type:text/plain; " | ||
"charset=UTF-8\n" | ||
"Project-Id-Version: SpinalHDLReport-Msgid-Bugs-To:POT-Creation-" | ||
"Date:2023-12-01 11:48+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-" | ||
"Translator:FULL NAME <EMAIL@ADDRESS>Language:zh_CNLanguage-Team:zh_CN " | ||
"<[email protected]>Plural-Forms:nplurals=1; plural=0;MIME-Version:1.0Content-" | ||
"Type:text/plain; charset=UTF-8\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESSPOT-Creation-Date:2023-12-02 00:23" | ||
"+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME " | ||
"<EMAIL@ADDRESS>Language-Team:LANGUAGE <[email protected]>MIME-Version:1.0Content-" | ||
"Type:text/plain; charset=UTF-8\n" | ||
"POT-Creation-Date: 2024-05-13 16:04+0000\n" | ||
"PO-Revision-Date: 2024-01-13 05:06+0000\n" | ||
"Last-Translator: tsy0123 <[email protected]>\n" | ||
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/" | ||
"spinaldoc-rtd/spinalhdldata-typesbits/zh_Hans/>\n" | ||
"Language: zh_CN\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bitGenerated-By:Babel 2.13.1\n" | ||
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects" | ||
"/spinaldoc-rtd/spinalhdldata-typesbits/zh_Hans/>\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"X-Generator: Weblate 5.4-dev\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.15.0\n" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:4 | ||
msgid "Bits" | ||
|
@@ -35,8 +38,8 @@ msgstr "声明" | |
|
||
#: ../../SpinalHDL/Data types/bits.rst:11 | ||
msgid "" | ||
"The syntax to declare a bit vector is as follows (everything between [] is " | ||
"optional):" | ||
"The syntax to declare a bit vector is as follows (everything between [] " | ||
"is optional):" | ||
msgstr "声明位向量的语法如下([]之间的所有内容都是可选的):" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:17 | ||
|
@@ -91,14 +94,13 @@ msgid "B([x bits,] elements: Element*)" | |
msgstr "B([x bits,] elements: Element*)" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:30 | ||
msgid "" | ||
"Create Bits assigned with the value specified by :ref:`elements <element>`" | ||
msgid "Create Bits assigned with the value specified by :ref:`elements <element>`" | ||
msgstr "创建并赋值由 :ref:`elements <element>` 指定值的Bits" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:53 | ||
msgid "" | ||
"When inferring the width of a ``Bits`` the sizes of assigned values still " | ||
"have to match the final size of the signal:" | ||
"When inferring the width of a ``Bits`` the sizes of assigned values still" | ||
" have to match the final size of the signal:" | ||
msgstr "当推断 ``Bits`` 的宽度时,赋予值的宽度仍然必须与信号的最终宽度相匹配:" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:70 | ||
|
@@ -113,8 +115,8 @@ msgstr "以下运算符可用于 ``Bits`` 类型:" | |
msgid "Logic" | ||
msgstr "逻辑运算" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:81 types/bits.rst:181 | ||
#: types/bits.rst:206 types/bits.rst:259 types/bits.rst:357 | ||
#: ../../SpinalHDL/Data types/bits.rst:81 types/bits.rst:181 types/bits.rst:206 | ||
#: types/bits.rst:259 types/bits.rst:357 | ||
msgid "Operator" | ||
msgstr "运算符" | ||
|
||
|
@@ -130,9 +132,9 @@ msgstr "~x" | |
msgid "Bitwise NOT" | ||
msgstr "按位非" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:86 types/bits.rst:114 | ||
#: types/bits.rst:128 types/bits.rst:132 types/bits.rst:136 types/bits.rst:140 | ||
#: types/bits.rst:211 types/bits.rst:226 types/bits.rst:374 types/bits.rst:389 | ||
#: ../../SpinalHDL/Data types/bits.rst:86 types/bits.rst:114 types/bits.rst:128 | ||
#: types/bits.rst:132 types/bits.rst:136 types/bits.rst:140 types/bits.rst:211 | ||
#: types/bits.rst:226 types/bits.rst:374 types/bits.rst:389 | ||
msgid "Bits(w(x) bits)" | ||
msgstr "Bits(w(x) bits)" | ||
|
||
|
@@ -172,9 +174,9 @@ msgstr "x.xorR" | |
msgid "XOR all bits of x" | ||
msgstr "对 x 的所有位进行异或" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:98 types/bits.rst:101 | ||
#: types/bits.rst:104 types/bits.rst:186 types/bits.rst:189 types/bits.rst:264 | ||
#: types/bits.rst:267 types/bits.rst:285 types/bits.rst:288 | ||
#: ../../SpinalHDL/Data types/bits.rst:98 types/bits.rst:101 types/bits.rst:104 | ||
#: types/bits.rst:186 types/bits.rst:189 types/bits.rst:264 types/bits.rst:267 | ||
#: types/bits.rst:285 types/bits.rst:288 | ||
msgid "Bool" | ||
msgstr "Bool" | ||
|
||
|
@@ -417,28 +419,26 @@ msgid "" | |
"To cast a ``Bool``, ``UInt`` or an ``SInt`` into a ``Bits``, you can use " | ||
"``B(something)`` or ``B(something[, x bits])``:" | ||
msgstr "" | ||
"要将 ``Bool`` 、 ``UInt`` 或 ``SInt`` 转换为 ``Bits``,您可以使用 " | ||
"``B(something)`` 或 ``B(something[, x bits])``:" | ||
"要将 ``Bool`` 、 ``UInt`` 或 ``SInt`` 转换为 ``Bits``,您可以使用 ``B(something)`` 或 " | ||
"``B(something[, x bits])``:" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:247 | ||
msgid "Bit extraction" | ||
msgstr "位提取" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:249 | ||
msgid "" | ||
"All of the bit extraction operations can be used to read a bit / group of " | ||
"bits. Like in other HDLs the extraction operators can also be used to assign" | ||
" a part of a ``Bits``." | ||
msgstr "所有位提取操作均可用于读取一个位/一组位。与其他 HDL 一样," | ||
"提取运算符也可用于为 ``Bits`` 的一部分赋值。" | ||
"All of the bit extraction operations can be used to read a bit / group of" | ||
" bits. Like in other HDLs the extraction operators can also be used to " | ||
"assign a part of a ``Bits``." | ||
msgstr "所有位提取操作均可用于读取一个位/一组位。与其他 HDL 一样,提取运算符也可用于为 ``Bits`` 的一部分赋值。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:252 | ||
msgid "" | ||
"All of the bit extraction operations can be used to read a bit / group of " | ||
"bits. Like in other HDLs They can also be used to select a range of bits to " | ||
"be written." | ||
msgstr "所有位提取操作均可用于读取一个位/一组位。与其他 HDL " | ||
"一样,它们也可用于选择要写入位的范围。" | ||
"All of the bit extraction operations can be used to read a bit / group of" | ||
" bits. Like in other HDLs They can also be used to select a range of bits" | ||
" to be written." | ||
msgstr "所有位提取操作均可用于读取一个位/一组位。与其他 HDL 一样,它们也可用于选择要写入位的范围。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:262 | ||
msgid "x(y: Int)" | ||
|
@@ -449,8 +449,9 @@ msgid "Static bit access of y-th bit" | |
msgstr "静态访问第 y 位" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:265 | ||
msgid "x(x: UInt)" | ||
msgstr "x(x: UInt)" | ||
#, fuzzy | ||
msgid "x(y: UInt)" | ||
msgstr "x(y: Int)" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:266 | ||
msgid "Variable bit access of y-th bit" | ||
|
@@ -474,8 +475,7 @@ msgstr "x(offset: UInt, width bits)" | |
|
||
#: ../../SpinalHDL/Data types/bits.rst:272 | ||
msgid "Variable part-select of fixed width, offset is LSB index" | ||
msgstr "选择偏移量可变和宽度固定的信号,``offset`` 为选择信号中LSB的索引 " | ||
"(可为另一信号)" | ||
msgstr "选择偏移量可变和宽度固定的信号,``offset`` 为选择信号中LSB的索引 (可为另一信号)" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:274 | ||
msgid "x(range: Range)" | ||
|
@@ -545,19 +545,18 @@ msgid "" | |
"divided into equal parts. If set to ``false`` the last element may be " | ||
"smaller than the other (equal sized) elements." | ||
msgstr "" | ||
"两个 ``subdivideIn`` 函数的所有参数都有一个可选参数 ``strict`` 参数(即 " | ||
"``subdivideIn(slices: SlicesCount, strict: Boolean = true)`` )。如果 " | ||
"``strict`` 为 ``true``,则如果输入无法等分,将引发错误。如果设置为 " | ||
"``false``,最后一个元素可能比其他(大小相等)元素小。" | ||
"两个 ``subdivideIn`` 函数的所有参数都有一个可选参数 ``strict`` 参数(即 ``subdivideIn(slices: " | ||
"SlicesCount, strict: Boolean = true)`` )。如果 ``strict`` 为 " | ||
"``true``,则如果输入无法等分,将引发错误。如果设置为 ``false``,最后一个元素可能比其他(大小相等)元素小。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:348 | ||
msgid "Misc" | ||
msgstr "杂项" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:350 | ||
msgid "" | ||
"In contrast to the bit extraction operations listed above it's not possible " | ||
"to use the return values to assign to the original signal." | ||
"In contrast to the bit extraction operations listed above it's not " | ||
"possible to use the return values to assign to the original signal." | ||
msgstr "与上面列出的位提取操作相反,上述函数不能使用其返回值给原始信号赋值。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:360 | ||
|
@@ -590,8 +589,8 @@ msgstr "x.valueRange" | |
|
||
#: ../../SpinalHDL/Data types/bits.rst:367 | ||
msgid "" | ||
"Return the range of minimum to maximum x values, interpreted as an unsigned " | ||
"integer (0 to 2 \\*\\* width - 1)." | ||
"Return the range of minimum to maximum x values, interpreted as an " | ||
"unsigned integer (0 to 2 \\*\\* width - 1)." | ||
msgstr "返回最小到最大 x 值的范围,理解为无符号整数(0 到 2 \\*\\* width - 1)。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:369 | ||
|
@@ -640,10 +639,9 @@ msgstr "x.resize(y)" | |
|
||
#: ../../SpinalHDL/Data types/bits.rst:382 | ||
msgid "" | ||
"Return a resized representation of x, if enlarged, it is extended with zero " | ||
"padding at MSB as necessary, y: Int" | ||
msgstr "返回一个新的信号与 x 信号直接连接但位宽变成了y位。如果位宽变大了," | ||
"则根据需要在 MSB 处用零填充进行扩展,y: Int" | ||
"Return a resized representation of x, if enlarged, it is extended with " | ||
"zero padding at MSB as necessary, y: Int" | ||
msgstr "返回一个新的信号与 x 信号直接连接但位宽变成了y位。如果位宽变大了,则根据需要在 MSB 处用零填充进行扩展,y: Int" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:384 | ||
msgid "Bits(y bits)" | ||
|
@@ -658,8 +656,7 @@ msgid "" | |
"Return a version of x which is allowed to be automatically resized were " | ||
"needed. The resize operation is deferred until the point of assignment " | ||
"later. The resize may widen or truncate, retaining the LSB." | ||
msgstr "返回一个允许自动调整位宽的 x 的副本信号。调整位宽操作被推迟到稍后的赋值操作。" | ||
"调整位宽可能会加宽或截断原信号,但保留 LSB。" | ||
msgstr "返回一个允许自动调整位宽的 x 的副本信号。调整位宽操作被推迟到稍后的赋值操作。调整位宽可能会加宽或截断原信号,但保留 LSB。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:390 | ||
msgid "x.resizeLeft(x)" | ||
|
@@ -669,17 +666,16 @@ msgstr "x.resizeLeft(x)" | |
msgid "" | ||
"Resize by keeping MSB at the same place, x:Int The resize may widen or " | ||
"truncate, retaining the MSB." | ||
msgstr "调整位宽时保持 MSB 位置不变,x:Int 调整位宽可能会加宽或截断信号,同时保留 " | ||
"MSB。" | ||
msgstr "调整位宽时保持 MSB 位置不变,x:Int 调整位宽可能会加宽或截断信号,同时保留 MSB。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:394 | ||
msgid "x.getZero" | ||
msgstr "x.getZero" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:395 | ||
msgid "" | ||
"Return a new instance of Bits that is assigned a constant value of zeros the" | ||
" same width as x." | ||
"Return a new instance of Bits that is assigned a constant value of zeros " | ||
"the same width as x." | ||
msgstr "返回新的 Bits 的实例,该实例被分配了与 x 宽度相同的0值(常量)。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:396 | ||
|
@@ -692,8 +688,8 @@ msgstr "x.getAllTrue" | |
|
||
#: ../../SpinalHDL/Data types/bits.rst:398 | ||
msgid "" | ||
"Return a new instance of Bits that is assigned a constant value of ones the " | ||
"same width as x." | ||
"Return a new instance of Bits that is assigned a constant value of ones " | ||
"the same width as x." | ||
msgstr "返回 Bits 的新实例,该实例被赋予了与 x 宽度相同的1值(常量)。" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:399 | ||
|
@@ -702,13 +698,12 @@ msgstr "Bits(w(x) bits).setAll()" | |
|
||
#: ../../SpinalHDL/Data types/bits.rst:402 | ||
msgid "" | ||
"`validRange` can only be used for types where the minimum and maximum values" | ||
" fit into a signed 32-bit integer. (This is a limitation given by the Scala " | ||
"``scala.collection.immutable.Range`` type which uses `Int`)" | ||
"`validRange` can only be used for types where the minimum and maximum " | ||
"values fit into a signed 32-bit integer. (This is a limitation given by " | ||
"the Scala ``scala.collection.immutable.Range`` type which uses `Int`)" | ||
msgstr "" | ||
"`validRange` 只能用于最小值和最大值能够保存在32 位有符号整数的情况下。 (" | ||
"这是由于 Scala ``scala.collection.immutable.Range`` 类型使用 `Int` " | ||
"作为范围描述)" | ||
"`validRange` 只能用于最小值和最大值能够保存在32 位有符号整数的情况下。 (这是由于 Scala " | ||
"``scala.collection.immutable.Range`` 类型使用 `Int` 作为范围描述)" | ||
|
||
#: ../../SpinalHDL/Data types/bits.rst:424 | ||
msgid "MaskedLiteral" | ||
|
@@ -717,11 +712,11 @@ msgstr "掩码字面量" | |
#: ../../SpinalHDL/Data types/bits.rst:426 | ||
msgid "" | ||
"MaskedLiteral values are bit vectors with don't care values denoted with " | ||
"``-``. They can be used for direct comparison or for ``switch`` statements " | ||
"and ``mux`` es." | ||
"``-``. They can be used for direct comparison or for ``switch`` " | ||
"statements and ``mux`` es." | ||
msgstr "" | ||
"MaskedLiteral 值带有\"不关心\"值的位向量,其中\"不关心\"值用 ``-`` 表示。" | ||
"它们可用于直接比较或用于 ``switch`` 和 ``mux`` 等语句。" | ||
"MaskedLiteral 值带有\"不关心\"值的位向量,其中\"不关心\"值用 ``-`` 表示。它们可用于直接比较或用于 " | ||
"``switch`` 和 ``mux`` 等语句。" | ||
|
||
#~ msgid "Create a BitVector, bits count is inferred" | ||
#~ msgstr "Create a BitVector, bits count is inferred" | ||
|
@@ -763,6 +758,11 @@ msgstr "" | |
#~ msgstr "Vec(位,w(x)/y)" | ||
|
||
#~ msgid "" | ||
#~ "Return a version of x which is allowed to be automatically resized were " | ||
#~ "needed" | ||
#~ "Return a version of x which is " | ||
#~ "allowed to be automatically resized were" | ||
#~ " needed" | ||
#~ msgstr "返回一个允许自动调整大小的 x 版本" | ||
|
||
#~ msgid "x(x: UInt)" | ||
#~ msgstr "x(x: UInt)" | ||
|