From f465a269e11cfba02c0928185d3d78724c5ae2a7 Mon Sep 17 00:00:00 2001 From: Xiao Yindong Date: Mon, 13 May 2024 17:05:37 +0000 Subject: [PATCH 01/12] Translated using Weblate (Chinese (Simplified)) Currently translated at 99.3% (158 of 159 strings) Translation: SpinalDoc-RTD/SpinalHDL/Data types/bits Translate-URL: https://hosted.weblate.org/projects/spinaldoc-rtd/spinalhdldata-typesbits/zh_Hans/ --- .../LC_MESSAGES/SpinalHDL/Data types/bits.po | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po index b9c336413b6..3d45b2f9eb7 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po @@ -1,25 +1,25 @@ - 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 Language:zh_CNLanguage-Team:zh_CN " -"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 " -"Language-Team:LANGUAGE 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 " +"Language:zh_CNLanguage-Team:zh_CN 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 Language-Team:LANGUAGE 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 <675526215@qq.com>\n" +"PO-Revision-Date: 2024-05-13 17:06+0000\n" +"Last-Translator: Xiao Yindong \n" +"Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" -"Language-Team: Chinese (Simplified) \n" -"Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 5.5.5\n" "Generated-By: Babel 2.15.0\n" #: ../../SpinalHDL/Data types/bits.rst:4 @@ -451,7 +451,7 @@ msgstr "静态访问第 y 位" #: ../../SpinalHDL/Data types/bits.rst:265 #, fuzzy msgid "x(y: UInt)" -msgstr "x(y: Int)" +msgstr "x(y: UInt)" #: ../../SpinalHDL/Data types/bits.rst:266 msgid "Variable bit access of y-th bit" @@ -765,4 +765,3 @@ msgstr "" #~ msgid "x(x: UInt)" #~ msgstr "x(x: UInt)" - From c06c604fb56d91c5b0a128d424cc32c9ef59bfd0 Mon Sep 17 00:00:00 2001 From: Readon Date: Mon, 13 May 2024 17:06:47 +0000 Subject: [PATCH 02/12] Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (159 of 159 strings) Translation: SpinalDoc-RTD/SpinalHDL/Data types/bits Translate-URL: https://hosted.weblate.org/projects/spinaldoc-rtd/spinalhdldata-typesbits/zh_Hans/ --- .../locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po index 3d45b2f9eb7..c7d759c844c 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Data types/bits.po @@ -10,8 +10,8 @@ msgstr "" ">Language-Team:LANGUAGE 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-05-13 17:06+0000\n" -"Last-Translator: Xiao Yindong \n" +"PO-Revision-Date: 2024-05-14 18:01+0000\n" +"Last-Translator: Readon \n" "Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" @@ -19,7 +19,7 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 5.5.5\n" +"X-Generator: Weblate 5.6-dev\n" "Generated-By: Babel 2.15.0\n" #: ../../SpinalHDL/Data types/bits.rst:4 @@ -449,7 +449,6 @@ msgid "Static bit access of y-th bit" msgstr "静态访问第 y 位" #: ../../SpinalHDL/Data types/bits.rst:265 -#, fuzzy msgid "x(y: UInt)" msgstr "x(y: UInt)" From 37c40753c34d10b44d22f83acf4d6797cd943be6 Mon Sep 17 00:00:00 2001 From: Yindong Date: Fri, 14 Jun 2024 09:20:51 +0800 Subject: [PATCH 03/12] add translateWith and translateBy's description. --- source/SpinalHDL/Libraries/stream.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/SpinalHDL/Libraries/stream.rst b/source/SpinalHDL/Libraries/stream.rst index 10317bdaa4d..a9682bb8c91 100644 --- a/source/SpinalHDL/Libraries/stream.rst +++ b/source/SpinalHDL/Libraries/stream.rst @@ -167,6 +167,16 @@ Functions | When cond is true, transaction are dropped - Stream[T] - 0 + * - x.translateWith(that : T2) + - | Return a Stream with payload `that` + | Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals + - Stream[T] + - 0 + * - x.translateBy(drive: (T) => T2) + - | Return a Stream with payload calculated by drive function + | Modify the payload of the `x` stream by the `drive` function, while preserving the `valid` and `ready` signals + - Stream[T] + - 0 The following code will create this logic : From 51e469fab8020915fd1e0b38eba13537755c7964 Mon Sep 17 00:00:00 2001 From: GiHub Action Bot Date: Fri, 14 Jun 2024 01:22:53 +0000 Subject: [PATCH 04/12] update .pot files --- .../gettext/SpinalHDL/Libraries/stream.pot | 314 +++++----- .../LC_MESSAGES/SpinalHDL/Libraries/stream.po | 568 +++++++++--------- 2 files changed, 463 insertions(+), 419 deletions(-) diff --git a/source/locale/gettext/SpinalHDL/Libraries/stream.pot b/source/locale/gettext/SpinalHDL/Libraries/stream.pot index bbf3f88e797..2483c2b4859 100644 --- a/source/locale/gettext/SpinalHDL/Libraries/stream.pot +++ b/source/locale/gettext/SpinalHDL/Libraries/stream.pot @@ -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-06-14 01:22+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,12 +37,12 @@ msgid "Signal" msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:20 -#: ../../SpinalHDL/Libraries/stream.rst:217 -#: ../../SpinalHDL/Libraries/stream.rst:232 -#: ../../SpinalHDL/Libraries/stream.rst:273 -#: ../../SpinalHDL/Libraries/stream.rst:294 -#: ../../SpinalHDL/Libraries/stream.rst:335 -#: ../../SpinalHDL/Libraries/stream.rst:353 +#: ../../SpinalHDL/Libraries/stream.rst:227 +#: ../../SpinalHDL/Libraries/stream.rst:242 +#: ../../SpinalHDL/Libraries/stream.rst:283 +#: ../../SpinalHDL/Libraries/stream.rst:304 +#: ../../SpinalHDL/Libraries/stream.rst:345 +#: ../../SpinalHDL/Libraries/stream.rst:363 msgid "Type" msgstr "" @@ -52,14 +52,14 @@ msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:22 #: ../../SpinalHDL/Libraries/stream.rst:96 -#: ../../SpinalHDL/Libraries/stream.rst:218 -#: ../../SpinalHDL/Libraries/stream.rst:233 -#: ../../SpinalHDL/Libraries/stream.rst:274 -#: ../../SpinalHDL/Libraries/stream.rst:295 -#: ../../SpinalHDL/Libraries/stream.rst:336 -#: ../../SpinalHDL/Libraries/stream.rst:354 -#: ../../SpinalHDL/Libraries/stream.rst:423 -#: ../../SpinalHDL/Libraries/stream.rst:438 +#: ../../SpinalHDL/Libraries/stream.rst:228 +#: ../../SpinalHDL/Libraries/stream.rst:243 +#: ../../SpinalHDL/Libraries/stream.rst:284 +#: ../../SpinalHDL/Libraries/stream.rst:305 +#: ../../SpinalHDL/Libraries/stream.rst:346 +#: ../../SpinalHDL/Libraries/stream.rst:364 +#: ../../SpinalHDL/Libraries/stream.rst:433 +#: ../../SpinalHDL/Libraries/stream.rst:448 msgid "Description" msgstr "" @@ -75,7 +75,7 @@ msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:30 #: ../../SpinalHDL/Libraries/stream.rst:110 #: ../../SpinalHDL/Libraries/stream.rst:114 -#: ../../SpinalHDL/Libraries/stream.rst:241 +#: ../../SpinalHDL/Libraries/stream.rst:251 msgid "Bool" msgstr "" @@ -110,9 +110,9 @@ msgid "payload" msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:35 -#: ../../SpinalHDL/Libraries/stream.rst:220 -#: ../../SpinalHDL/Libraries/stream.rst:276 -#: ../../SpinalHDL/Libraries/stream.rst:338 +#: ../../SpinalHDL/Libraries/stream.rst:230 +#: ../../SpinalHDL/Libraries/stream.rst:286 +#: ../../SpinalHDL/Libraries/stream.rst:348 msgid "T" msgstr "" @@ -173,7 +173,7 @@ msgid "Syntax" msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:97 -#: ../../SpinalHDL/Libraries/stream.rst:453 +#: ../../SpinalHDL/Libraries/stream.rst:463 msgid "Return" msgstr "" @@ -198,14 +198,16 @@ msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:137 #: ../../SpinalHDL/Libraries/stream.rst:163 #: ../../SpinalHDL/Libraries/stream.rst:168 -#: ../../SpinalHDL/Libraries/stream.rst:235 -#: ../../SpinalHDL/Libraries/stream.rst:238 -#: ../../SpinalHDL/Libraries/stream.rst:297 -#: ../../SpinalHDL/Libraries/stream.rst:300 -#: ../../SpinalHDL/Libraries/stream.rst:356 -#: ../../SpinalHDL/Libraries/stream.rst:359 -#: ../../SpinalHDL/Libraries/stream.rst:455 -#: ../../SpinalHDL/Libraries/stream.rst:457 +#: ../../SpinalHDL/Libraries/stream.rst:173 +#: ../../SpinalHDL/Libraries/stream.rst:178 +#: ../../SpinalHDL/Libraries/stream.rst:245 +#: ../../SpinalHDL/Libraries/stream.rst:248 +#: ../../SpinalHDL/Libraries/stream.rst:307 +#: ../../SpinalHDL/Libraries/stream.rst:310 +#: ../../SpinalHDL/Libraries/stream.rst:366 +#: ../../SpinalHDL/Libraries/stream.rst:369 +#: ../../SpinalHDL/Libraries/stream.rst:465 +#: ../../SpinalHDL/Libraries/stream.rst:467 msgid "Stream[T]" msgstr "" @@ -289,6 +291,8 @@ msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:153 #: ../../SpinalHDL/Libraries/stream.rst:164 #: ../../SpinalHDL/Libraries/stream.rst:169 +#: ../../SpinalHDL/Libraries/stream.rst:174 +#: ../../SpinalHDL/Libraries/stream.rst:179 msgid "0" msgstr "" @@ -376,243 +380,267 @@ msgstr "" msgid "When cond is true, transaction are dropped" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:172 +#: ../../SpinalHDL/Libraries/stream.rst:170 +msgid "x.translateWith(that : T2)" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:0 +msgid "Return a Stream with payload `that`" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:0 +msgid "Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:175 +msgid "x.translateBy(drive: (T) => T2)" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:0 +msgid "Return a Stream with payload calculated by drive function" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:0 +msgid "Modify the payload of the `x` stream by the `drive` function, while preserving the `valid` and `ready` signals" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:182 msgid "The following code will create this logic :" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:192 +#: ../../SpinalHDL/Libraries/stream.rst:202 msgid "Utils" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:194 +#: ../../SpinalHDL/Libraries/stream.rst:204 msgid "There is many utils that you can use in your design in conjunction with the Stream bus, this chapter will document them." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:197 +#: ../../SpinalHDL/Libraries/stream.rst:207 msgid "StreamFifo" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:199 +#: ../../SpinalHDL/Libraries/stream.rst:209 msgid "On each stream you can call the .queue(size) to get a buffered stream. But you can also instantiate the FIFO component itself :" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:216 -#: ../../SpinalHDL/Libraries/stream.rst:272 -#: ../../SpinalHDL/Libraries/stream.rst:334 +#: ../../SpinalHDL/Libraries/stream.rst:226 +#: ../../SpinalHDL/Libraries/stream.rst:282 +#: ../../SpinalHDL/Libraries/stream.rst:344 msgid "parameter name" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:219 -#: ../../SpinalHDL/Libraries/stream.rst:275 -#: ../../SpinalHDL/Libraries/stream.rst:337 +#: ../../SpinalHDL/Libraries/stream.rst:229 +#: ../../SpinalHDL/Libraries/stream.rst:285 +#: ../../SpinalHDL/Libraries/stream.rst:347 msgid "dataType" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:221 -#: ../../SpinalHDL/Libraries/stream.rst:277 -#: ../../SpinalHDL/Libraries/stream.rst:339 +#: ../../SpinalHDL/Libraries/stream.rst:231 +#: ../../SpinalHDL/Libraries/stream.rst:287 +#: ../../SpinalHDL/Libraries/stream.rst:349 msgid "Payload data type" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:222 -#: ../../SpinalHDL/Libraries/stream.rst:278 +#: ../../SpinalHDL/Libraries/stream.rst:232 +#: ../../SpinalHDL/Libraries/stream.rst:288 msgid "depth" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:223 -#: ../../SpinalHDL/Libraries/stream.rst:279 +#: ../../SpinalHDL/Libraries/stream.rst:233 +#: ../../SpinalHDL/Libraries/stream.rst:289 msgid "Int" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:224 -#: ../../SpinalHDL/Libraries/stream.rst:280 +#: ../../SpinalHDL/Libraries/stream.rst:234 +#: ../../SpinalHDL/Libraries/stream.rst:290 msgid "Size of the memory used to store elements" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:231 -#: ../../SpinalHDL/Libraries/stream.rst:293 -#: ../../SpinalHDL/Libraries/stream.rst:352 +#: ../../SpinalHDL/Libraries/stream.rst:241 +#: ../../SpinalHDL/Libraries/stream.rst:303 +#: ../../SpinalHDL/Libraries/stream.rst:362 msgid "io name" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:234 -#: ../../SpinalHDL/Libraries/stream.rst:296 +#: ../../SpinalHDL/Libraries/stream.rst:244 +#: ../../SpinalHDL/Libraries/stream.rst:306 msgid "push" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:236 -#: ../../SpinalHDL/Libraries/stream.rst:298 -#: ../../SpinalHDL/Libraries/stream.rst:357 +#: ../../SpinalHDL/Libraries/stream.rst:246 +#: ../../SpinalHDL/Libraries/stream.rst:308 +#: ../../SpinalHDL/Libraries/stream.rst:367 msgid "Used to push elements" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:237 -#: ../../SpinalHDL/Libraries/stream.rst:299 +#: ../../SpinalHDL/Libraries/stream.rst:247 +#: ../../SpinalHDL/Libraries/stream.rst:309 msgid "pop" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:239 -#: ../../SpinalHDL/Libraries/stream.rst:301 -#: ../../SpinalHDL/Libraries/stream.rst:360 +#: ../../SpinalHDL/Libraries/stream.rst:249 +#: ../../SpinalHDL/Libraries/stream.rst:311 +#: ../../SpinalHDL/Libraries/stream.rst:370 msgid "Used to pop elements" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:240 +#: ../../SpinalHDL/Libraries/stream.rst:250 msgid "flush" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:242 +#: ../../SpinalHDL/Libraries/stream.rst:252 msgid "Used to remove all elements inside the FIFO" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:243 +#: ../../SpinalHDL/Libraries/stream.rst:253 msgid "occupancy" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:244 -#: ../../SpinalHDL/Libraries/stream.rst:303 -#: ../../SpinalHDL/Libraries/stream.rst:306 +#: ../../SpinalHDL/Libraries/stream.rst:254 +#: ../../SpinalHDL/Libraries/stream.rst:313 +#: ../../SpinalHDL/Libraries/stream.rst:316 msgid "UInt of log2Up(depth + 1) bits" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:245 +#: ../../SpinalHDL/Libraries/stream.rst:255 msgid "Indicate the internal memory occupancy" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:249 +#: ../../SpinalHDL/Libraries/stream.rst:259 msgid "StreamFifoCC" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:251 +#: ../../SpinalHDL/Libraries/stream.rst:261 msgid "You can instantiate the dual clock domain version of the fifo the following way :" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:281 +#: ../../SpinalHDL/Libraries/stream.rst:291 msgid "pushClock" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:282 -#: ../../SpinalHDL/Libraries/stream.rst:285 -#: ../../SpinalHDL/Libraries/stream.rst:341 -#: ../../SpinalHDL/Libraries/stream.rst:344 +#: ../../SpinalHDL/Libraries/stream.rst:292 +#: ../../SpinalHDL/Libraries/stream.rst:295 +#: ../../SpinalHDL/Libraries/stream.rst:351 +#: ../../SpinalHDL/Libraries/stream.rst:354 msgid "ClockDomain" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:283 -#: ../../SpinalHDL/Libraries/stream.rst:342 +#: ../../SpinalHDL/Libraries/stream.rst:293 +#: ../../SpinalHDL/Libraries/stream.rst:352 msgid "Clock domain used by the push side" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:284 +#: ../../SpinalHDL/Libraries/stream.rst:294 msgid "popClock" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:286 -#: ../../SpinalHDL/Libraries/stream.rst:345 +#: ../../SpinalHDL/Libraries/stream.rst:296 +#: ../../SpinalHDL/Libraries/stream.rst:355 msgid "Clock domain used by the pop side" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:302 +#: ../../SpinalHDL/Libraries/stream.rst:312 msgid "pushOccupancy" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:304 +#: ../../SpinalHDL/Libraries/stream.rst:314 msgid "Indicate the internal memory occupancy (from the push side perspective)" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:305 +#: ../../SpinalHDL/Libraries/stream.rst:315 msgid "popOccupancy" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:307 +#: ../../SpinalHDL/Libraries/stream.rst:317 msgid "Indicate the internal memory occupancy (from the pop side perspective)" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:311 +#: ../../SpinalHDL/Libraries/stream.rst:321 msgid "StreamCCByToggle" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:313 +#: ../../SpinalHDL/Libraries/stream.rst:323 msgid "Component that connects Streams across clock domains based on toggling signals." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:314 +#: ../../SpinalHDL/Libraries/stream.rst:324 msgid "This way of implementing a cross clock domain bridge is characterized by a small area usage but also a low bandwidth." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:340 +#: ../../SpinalHDL/Libraries/stream.rst:350 msgid "inputClock" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:343 +#: ../../SpinalHDL/Libraries/stream.rst:353 msgid "outputClock" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:355 +#: ../../SpinalHDL/Libraries/stream.rst:365 msgid "input" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:358 +#: ../../SpinalHDL/Libraries/stream.rst:368 msgid "output" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:363 +#: ../../SpinalHDL/Libraries/stream.rst:373 msgid "Alternatively you can also use a this shorter syntax which directly return you the cross clocked stream:" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:377 +#: ../../SpinalHDL/Libraries/stream.rst:387 msgid "StreamWidthAdapter" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:379 +#: ../../SpinalHDL/Libraries/stream.rst:389 msgid "This component adapts the width of the input stream to the output stream. When the width of the ``outStream`` payload is greater than the ``inStream``, by combining the payloads of several input transactions into one; conversely, if the payload width of the ``outStream`` is less than the ``inStream``, one input transaction will be split into several output transactions." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:382 +#: ../../SpinalHDL/Libraries/stream.rst:392 msgid "In the best case, the width of the payload of the ``inStream`` should be an integer multiple of the ``outStream`` as shown below." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:390 +#: ../../SpinalHDL/Libraries/stream.rst:400 msgid "As in the example above, the two ``inStream`` transactions will be merged into one ``outStream`` transaction, and the payload of the first input transaction will be placed on the lower bits of the output payload by default." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:392 +#: ../../SpinalHDL/Libraries/stream.rst:402 msgid "If the expected order of input transaction payload placement is different from the default setting, here is an example." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:400 +#: ../../SpinalHDL/Libraries/stream.rst:410 msgid "There is also a traditional parameter called ``endianness``, which has the same effect as ``ORDER``. The value of ``endianness`` is the same as ``LOWER_FIRST`` of ``order`` when it is ``LITTLE``, and the same as ``HIGHER_FIRST`` when it is ``BIG``. The ``padding`` parameter is an optional boolean value to determine whether the adapter accepts non-integer multiples of the input and output payload width." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:406 +#: ../../SpinalHDL/Libraries/stream.rst:416 msgid "StreamArbiter" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:408 +#: ../../SpinalHDL/Libraries/stream.rst:418 msgid "When you have multiple Streams and you want to arbitrate them to drive a single one, you can use the StreamArbiterFactory." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:422 +#: ../../SpinalHDL/Libraries/stream.rst:432 msgid "Arbitration functions" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:424 +#: ../../SpinalHDL/Libraries/stream.rst:434 msgid "lowerFirst" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:425 +#: ../../SpinalHDL/Libraries/stream.rst:435 msgid "Lower port have priority over higher port" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:426 +#: ../../SpinalHDL/Libraries/stream.rst:436 msgid "roundRobin" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:427 +#: ../../SpinalHDL/Libraries/stream.rst:437 msgid "Fair round robin arbitration" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:428 +#: ../../SpinalHDL/Libraries/stream.rst:438 msgid "sequentialOrder" msgstr "" @@ -624,27 +652,27 @@ msgstr "" msgid "First transaction should come from port zero, then from port one, ..." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:437 +#: ../../SpinalHDL/Libraries/stream.rst:447 msgid "Lock functions" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:439 +#: ../../SpinalHDL/Libraries/stream.rst:449 msgid "noLock" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:440 +#: ../../SpinalHDL/Libraries/stream.rst:450 msgid "The port selection could change every cycle, even if the transaction on the selected port is not consumed." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:441 +#: ../../SpinalHDL/Libraries/stream.rst:451 msgid "transactionLock" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:442 +#: ../../SpinalHDL/Libraries/stream.rst:452 msgid "The port selection is locked until the transaction on the selected port is consumed." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:443 +#: ../../SpinalHDL/Libraries/stream.rst:453 msgid "fragmentLock" msgstr "" @@ -656,126 +684,126 @@ msgstr "" msgid "In this mode, the port selection is locked until the selected port finish is burst (last=True)." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:452 +#: ../../SpinalHDL/Libraries/stream.rst:462 msgid "Generation functions" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:454 +#: ../../SpinalHDL/Libraries/stream.rst:464 msgid "on(inputs : Seq[Stream[T]])" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:456 +#: ../../SpinalHDL/Libraries/stream.rst:466 msgid "onArgs(inputs : Stream[T]*)" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:460 +#: ../../SpinalHDL/Libraries/stream.rst:470 msgid "StreamJoin" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:462 +#: ../../SpinalHDL/Libraries/stream.rst:472 msgid "This utility takes multiple input streams and waits until all of them fire `valid` before letting all of them through by providing `ready`." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:471 +#: ../../SpinalHDL/Libraries/stream.rst:481 msgid "StreamFork" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:473 +#: ../../SpinalHDL/Libraries/stream.rst:483 msgid "A StreamFork will clone each incoming data to all its output streams. If synchronous is true, all output streams will always fire together, which means that the stream will halt until all output streams are ready. If synchronous is false, output streams may be ready one at a time, at the cost of an additional flip flop (1 bit per output). The input stream will block until all output streams have processed each item regardlessly." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:485 +#: ../../SpinalHDL/Libraries/stream.rst:495 msgid "or" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:493 +#: ../../SpinalHDL/Libraries/stream.rst:503 msgid "StreamMux" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:495 +#: ../../SpinalHDL/Libraries/stream.rst:505 msgid "A mux implementation for ``Stream``. It takes a ``select`` signal and streams in ``inputs``, and returns a ``Stream`` which is connected to one of the input streams specified by ``select``. ``StreamArbiter`` is a facility works similar to this but is more powerful." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:507 +#: ../../SpinalHDL/Libraries/stream.rst:517 msgid "The ``UInt`` type of ``select`` signal could not be changed while output stream is stalled, or it might break the transaction on the fly. Use ``Stream`` typed ``select`` can generate a stream interface which only fire and change the routing when it is safe." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:512 +#: ../../SpinalHDL/Libraries/stream.rst:522 msgid "StreamDemux" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:514 +#: ../../SpinalHDL/Libraries/stream.rst:524 msgid "A demux implementation for ``Stream``. It takes a ``input``, a ``select`` and a ``portCount`` and returns a ``Vec(Stream)`` where the output stream specified by ``select`` is connected to ``input``, the other output streams are inactive. For safe transaction, refer the notes above." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:525 +#: ../../SpinalHDL/Libraries/stream.rst:535 msgid "StreamDispatcherSequencial" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:527 +#: ../../SpinalHDL/Libraries/stream.rst:537 msgid "This util take its input stream and routes it to ``outputCount`` stream in a sequential order." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:538 +#: ../../SpinalHDL/Libraries/stream.rst:548 msgid "StreamTransactionExtender" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:540 +#: ../../SpinalHDL/Libraries/stream.rst:550 msgid "This utility will take one input transfer and generate several output transfers, it provides the facility to repeat the payload value ``count+1`` times into output transfers. The ``count`` is captured and registered each time inputStream fires for an individual payload." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:555 +#: ../../SpinalHDL/Libraries/stream.rst:565 msgid "This ``extender`` provides several status signals, such as ``working``, ``last``, ``done`` where ``working`` means there is one input transfer accepted and in-progress, ``last`` indicates the last output transfer is prepared and waiting to complete, ``done`` become valid represents the last output transfer is fireing and making the current input transaction process complete and ready to start another transaction." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:572 +#: ../../SpinalHDL/Libraries/stream.rst:582 msgid "If only count for output stream is required then use ``StreamTransactionCounter`` instead." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:575 +#: ../../SpinalHDL/Libraries/stream.rst:585 msgid "Simulation support" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:577 +#: ../../SpinalHDL/Libraries/stream.rst:587 msgid "For simulation master and slave implementations are available:" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:583 +#: ../../SpinalHDL/Libraries/stream.rst:593 msgid "Class" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:584 +#: ../../SpinalHDL/Libraries/stream.rst:594 msgid "Usage" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:585 +#: ../../SpinalHDL/Libraries/stream.rst:595 msgid "StreamMonitor" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:586 +#: ../../SpinalHDL/Libraries/stream.rst:596 msgid "Used for both master and slave sides, calls function with payload if Stream fires." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:587 +#: ../../SpinalHDL/Libraries/stream.rst:597 msgid "StreamDriver" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:588 +#: ../../SpinalHDL/Libraries/stream.rst:598 msgid "Testbench master side, drives values by calling function to apply value (if available). Function must return if value was available. Supports random delays." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:589 +#: ../../SpinalHDL/Libraries/stream.rst:599 msgid "StreamReadyRandmizer" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:590 +#: ../../SpinalHDL/Libraries/stream.rst:600 msgid "Randomizes ``ready`` for reception of data, testbench is the slave side." msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:591 +#: ../../SpinalHDL/Libraries/stream.rst:601 msgid "ScoreboardInOrder" msgstr "" -#: ../../SpinalHDL/Libraries/stream.rst:592 +#: ../../SpinalHDL/Libraries/stream.rst:602 msgid "Often used to compare reference/dut data" msgstr "" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po index 21d4f167270..e4176667720 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po @@ -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 " -"Language:zh_CNLanguage-Team:zh_CN 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 Language-Team:LANGUAGE 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 Language:zh_CNLanguage-Team:zh_CN " +"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 " +"Language-Team:LANGUAGE MIME-Version:1.0Content-" +"Type:text/plain; charset=UTF-8\n" +"POT-Creation-Date: 2024-06-14 01:22+0000\n" "PO-Revision-Date: 2024-03-30 16:13+0000\n" "Last-Translator: Readon \n" -"Language-Team: Chinese (Simplified) \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) \n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 5.5-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/Libraries/stream.rst:7 msgid "Stream" @@ -42,12 +45,12 @@ msgid "Signal" msgstr "信号" #: ../../SpinalHDL/Libraries/stream.rst:20 -#: ../../SpinalHDL/Libraries/stream.rst:217 -#: ../../SpinalHDL/Libraries/stream.rst:232 -#: ../../SpinalHDL/Libraries/stream.rst:273 -#: ../../SpinalHDL/Libraries/stream.rst:294 -#: ../../SpinalHDL/Libraries/stream.rst:335 -#: ../../SpinalHDL/Libraries/stream.rst:353 +#: ../../SpinalHDL/Libraries/stream.rst:227 +#: ../../SpinalHDL/Libraries/stream.rst:242 +#: ../../SpinalHDL/Libraries/stream.rst:283 +#: ../../SpinalHDL/Libraries/stream.rst:304 +#: ../../SpinalHDL/Libraries/stream.rst:345 +#: ../../SpinalHDL/Libraries/stream.rst:363 msgid "Type" msgstr "类型" @@ -57,14 +60,14 @@ msgstr "驱动" #: ../../SpinalHDL/Libraries/stream.rst:22 #: ../../SpinalHDL/Libraries/stream.rst:96 -#: ../../SpinalHDL/Libraries/stream.rst:218 -#: ../../SpinalHDL/Libraries/stream.rst:233 -#: ../../SpinalHDL/Libraries/stream.rst:274 -#: ../../SpinalHDL/Libraries/stream.rst:295 -#: ../../SpinalHDL/Libraries/stream.rst:336 -#: ../../SpinalHDL/Libraries/stream.rst:354 -#: ../../SpinalHDL/Libraries/stream.rst:423 -#: ../../SpinalHDL/Libraries/stream.rst:438 +#: ../../SpinalHDL/Libraries/stream.rst:228 +#: ../../SpinalHDL/Libraries/stream.rst:243 +#: ../../SpinalHDL/Libraries/stream.rst:284 +#: ../../SpinalHDL/Libraries/stream.rst:305 +#: ../../SpinalHDL/Libraries/stream.rst:346 +#: ../../SpinalHDL/Libraries/stream.rst:364 +#: ../../SpinalHDL/Libraries/stream.rst:433 +#: ../../SpinalHDL/Libraries/stream.rst:448 msgid "Description" msgstr "描述" @@ -80,7 +83,7 @@ msgstr "valid" #: ../../SpinalHDL/Libraries/stream.rst:30 #: ../../SpinalHDL/Libraries/stream.rst:110 #: ../../SpinalHDL/Libraries/stream.rst:114 -#: ../../SpinalHDL/Libraries/stream.rst:241 +#: ../../SpinalHDL/Libraries/stream.rst:251 msgid "Bool" msgstr "Bool" @@ -115,9 +118,9 @@ msgid "payload" msgstr "payload" #: ../../SpinalHDL/Libraries/stream.rst:35 -#: ../../SpinalHDL/Libraries/stream.rst:220 -#: ../../SpinalHDL/Libraries/stream.rst:276 -#: ../../SpinalHDL/Libraries/stream.rst:338 +#: ../../SpinalHDL/Libraries/stream.rst:230 +#: ../../SpinalHDL/Libraries/stream.rst:286 +#: ../../SpinalHDL/Libraries/stream.rst:348 msgid "T" msgstr "T" @@ -131,8 +134,8 @@ msgstr "这里有一些在SpinalHDL中的用法示例:" #: ../../SpinalHDL/Libraries/stream.rst:70 msgid "" -"Each slave can or can't allow the payload to change when valid is high and " -"ready is low. For examples:" +"Each slave can or can't allow the payload to change when valid is high " +"and ready is low. For examples:" msgstr "当valid为高且ready为低时,每个从端都可以控制是否允许有效负载变化。例如:" #: ../../SpinalHDL/Libraries/stream.rst:73 @@ -143,30 +146,27 @@ msgstr "没有锁逻辑的优先级仲裁器可以从一个输入切换到另一 #: ../../SpinalHDL/Libraries/stream.rst:74 msgid "" -"An UART controller could directly use the write port to drive UART pins and " -"only consume the transaction at the end of the transmission. Be careful with" -" that." -msgstr "UART控制器可以直接使用写端口驱动UART引脚,并且只在传输结束时完成数据交换。对" -"此需要注意。" +"An UART controller could directly use the write port to drive UART pins " +"and only consume the transaction at the end of the transmission. Be " +"careful with that." +msgstr "UART控制器可以直接使用写端口驱动UART引脚,并且只在传输结束时完成数据交换。对此需要注意。" #: ../../SpinalHDL/Libraries/stream.rst:78 msgid "Semantics" msgstr "语义" #: ../../SpinalHDL/Libraries/stream.rst:80 -msgid "" -"When manually reading/driving the signals of a Stream keep in mind that:" +msgid "When manually reading/driving the signals of a Stream keep in mind that:" msgstr "当手动读取/驱动反压流的信号时,请记住:" #: ../../SpinalHDL/Libraries/stream.rst:82 msgid "" "After being asserted, ``valid`` may only be deasserted once the current " -"payload was acknowleged. This means ``valid`` can only toggle to 0 the cycle" -" after a the slave did a read by asserting ``ready``." +"payload was acknowleged. This means ``valid`` can only toggle to 0 the " +"cycle after a the slave did a read by asserting ``ready``." msgstr "" -"当 ``valid`` 被置为有效后,它只有在当前负载被使用后才能被置为无效。这意味着 " -"``valid`` 只能在从端通过置高 ``ready`` " -"完成一次读取后的下一个周期,才可以切换到0。" +"当 ``valid`` 被置为有效后,它只有在当前负载被使用后才能被置为无效。这意味着 ``valid`` 只能在从端通过置高 ``ready``" +" 完成一次读取后的下一个周期,才可以切换到0。" #: ../../SpinalHDL/Libraries/stream.rst:83 msgid "In contrast to that ``ready`` may change at any time." @@ -180,10 +180,9 @@ msgstr "传输仅在 ``valid`` 和 ``ready`` 均已置高的周期内进行。" #: ../../SpinalHDL/Libraries/stream.rst:85 msgid "" -"``valid`` of a Stream must not depend on ``ready`` in a combinatorial way " -"and any path between the two must be registered." -msgstr "一个反压流的 ``valid`` 不能以组合逻辑方式和 ``ready`` " -"连接,并且两者之间的任何路径都必须经过寄存器。" +"``valid`` of a Stream must not depend on ``ready`` in a combinatorial way" +" and any path between the two must be registered." +msgstr "一个反压流的 ``valid`` 不能以组合逻辑方式和 ``ready`` 连接,并且两者之间的任何路径都必须经过寄存器。" #: ../../SpinalHDL/Libraries/stream.rst:86 msgid "It is recommended that ``valid`` does not depend on ``ready`` at all." @@ -198,7 +197,7 @@ msgid "Syntax" msgstr "语法" #: ../../SpinalHDL/Libraries/stream.rst:97 -#: ../../SpinalHDL/Libraries/stream.rst:453 +#: ../../SpinalHDL/Libraries/stream.rst:463 msgid "Return" msgstr "返回类型" @@ -223,14 +222,16 @@ msgstr "创建一个给定类型的Stream反压流" #: ../../SpinalHDL/Libraries/stream.rst:137 #: ../../SpinalHDL/Libraries/stream.rst:163 #: ../../SpinalHDL/Libraries/stream.rst:168 -#: ../../SpinalHDL/Libraries/stream.rst:235 -#: ../../SpinalHDL/Libraries/stream.rst:238 -#: ../../SpinalHDL/Libraries/stream.rst:297 -#: ../../SpinalHDL/Libraries/stream.rst:300 -#: ../../SpinalHDL/Libraries/stream.rst:356 -#: ../../SpinalHDL/Libraries/stream.rst:359 -#: ../../SpinalHDL/Libraries/stream.rst:455 -#: ../../SpinalHDL/Libraries/stream.rst:457 +#: ../../SpinalHDL/Libraries/stream.rst:173 +#: ../../SpinalHDL/Libraries/stream.rst:178 +#: ../../SpinalHDL/Libraries/stream.rst:245 +#: ../../SpinalHDL/Libraries/stream.rst:248 +#: ../../SpinalHDL/Libraries/stream.rst:307 +#: ../../SpinalHDL/Libraries/stream.rst:310 +#: ../../SpinalHDL/Libraries/stream.rst:366 +#: ../../SpinalHDL/Libraries/stream.rst:369 +#: ../../SpinalHDL/Libraries/stream.rst:465 +#: ../../SpinalHDL/Libraries/stream.rst:467 msgid "Stream[T]" msgstr "Stream[T]" @@ -314,6 +315,8 @@ msgstr "Cost = payload width * (mux2 + 1 flip flop)" #: ../../SpinalHDL/Libraries/stream.rst:153 #: ../../SpinalHDL/Libraries/stream.rst:164 #: ../../SpinalHDL/Libraries/stream.rst:169 +#: ../../SpinalHDL/Libraries/stream.rst:174 +#: ../../SpinalHDL/Libraries/stream.rst:179 msgid "0" msgstr "0" @@ -401,292 +404,315 @@ msgstr "x.throwWhen(cond : Bool)" msgid "When cond is true, transaction are dropped" msgstr "当cond为true时,传输数据将被抛弃" -#: ../../SpinalHDL/Libraries/stream.rst:172 +#: ../../SpinalHDL/Libraries/stream.rst:170 +msgid "x.translateWith(that : T2)" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst +#, fuzzy +msgid "Return a Stream with payload `that`" +msgstr "返回连接到x的反压流" + +#: ../../SpinalHDL/Libraries/stream.rst +msgid "" +"Modify the payload of the `x` stream, while preserving the `valid` and " +"`ready` signals" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:175 +msgid "x.translateBy(drive: (T) => T2)" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst +msgid "Return a Stream with payload calculated by drive function" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst +msgid "" +"Modify the payload of the `x` stream by the `drive` function, while " +"preserving the `valid` and `ready` signals" +msgstr "" + +#: ../../SpinalHDL/Libraries/stream.rst:182 msgid "The following code will create this logic :" msgstr "以下代码将创建此逻辑:" -#: ../../SpinalHDL/Libraries/stream.rst:192 +#: ../../SpinalHDL/Libraries/stream.rst:202 msgid "Utils" msgstr "实用工具" -#: ../../SpinalHDL/Libraries/stream.rst:194 +#: ../../SpinalHDL/Libraries/stream.rst:204 msgid "" -"There is many utils that you can use in your design in conjunction with the " -"Stream bus, this chapter will document them." +"There is many utils that you can use in your design in conjunction with " +"the Stream bus, this chapter will document them." msgstr "有许多实用工具可以在设计中与反压流总线结合使用,本章将介绍它们。" -#: ../../SpinalHDL/Libraries/stream.rst:197 +#: ../../SpinalHDL/Libraries/stream.rst:207 msgid "StreamFifo" msgstr "StreamFifo" -#: ../../SpinalHDL/Libraries/stream.rst:199 +#: ../../SpinalHDL/Libraries/stream.rst:209 msgid "" -"On each stream you can call the .queue(size) to get a buffered stream. But " -"you can also instantiate the FIFO component itself :" -msgstr "您可以在每个反压流上调用 .queue(size) 来获取一个缓冲反压流。但您也可以实例化 " -"FIFO 组件本身:" +"On each stream you can call the .queue(size) to get a buffered stream. " +"But you can also instantiate the FIFO component itself :" +msgstr "您可以在每个反压流上调用 .queue(size) 来获取一个缓冲反压流。但您也可以实例化 FIFO 组件本身:" -#: ../../SpinalHDL/Libraries/stream.rst:216 -#: ../../SpinalHDL/Libraries/stream.rst:272 -#: ../../SpinalHDL/Libraries/stream.rst:334 +#: ../../SpinalHDL/Libraries/stream.rst:226 +#: ../../SpinalHDL/Libraries/stream.rst:282 +#: ../../SpinalHDL/Libraries/stream.rst:344 msgid "parameter name" msgstr "参数名称" -#: ../../SpinalHDL/Libraries/stream.rst:219 -#: ../../SpinalHDL/Libraries/stream.rst:275 -#: ../../SpinalHDL/Libraries/stream.rst:337 +#: ../../SpinalHDL/Libraries/stream.rst:229 +#: ../../SpinalHDL/Libraries/stream.rst:285 +#: ../../SpinalHDL/Libraries/stream.rst:347 msgid "dataType" msgstr "数据类型" -#: ../../SpinalHDL/Libraries/stream.rst:221 -#: ../../SpinalHDL/Libraries/stream.rst:277 -#: ../../SpinalHDL/Libraries/stream.rst:339 +#: ../../SpinalHDL/Libraries/stream.rst:231 +#: ../../SpinalHDL/Libraries/stream.rst:287 +#: ../../SpinalHDL/Libraries/stream.rst:349 msgid "Payload data type" msgstr "有效负载(payload)数据类型" -#: ../../SpinalHDL/Libraries/stream.rst:222 -#: ../../SpinalHDL/Libraries/stream.rst:278 +#: ../../SpinalHDL/Libraries/stream.rst:232 +#: ../../SpinalHDL/Libraries/stream.rst:288 msgid "depth" msgstr "depth" -#: ../../SpinalHDL/Libraries/stream.rst:223 -#: ../../SpinalHDL/Libraries/stream.rst:279 +#: ../../SpinalHDL/Libraries/stream.rst:233 +#: ../../SpinalHDL/Libraries/stream.rst:289 msgid "Int" msgstr "Int" -#: ../../SpinalHDL/Libraries/stream.rst:224 -#: ../../SpinalHDL/Libraries/stream.rst:280 +#: ../../SpinalHDL/Libraries/stream.rst:234 +#: ../../SpinalHDL/Libraries/stream.rst:290 msgid "Size of the memory used to store elements" msgstr "用于存储数据的存储器的大小" -#: ../../SpinalHDL/Libraries/stream.rst:231 -#: ../../SpinalHDL/Libraries/stream.rst:293 -#: ../../SpinalHDL/Libraries/stream.rst:352 +#: ../../SpinalHDL/Libraries/stream.rst:241 +#: ../../SpinalHDL/Libraries/stream.rst:303 +#: ../../SpinalHDL/Libraries/stream.rst:362 msgid "io name" msgstr "io名称" -#: ../../SpinalHDL/Libraries/stream.rst:234 -#: ../../SpinalHDL/Libraries/stream.rst:296 +#: ../../SpinalHDL/Libraries/stream.rst:244 +#: ../../SpinalHDL/Libraries/stream.rst:306 msgid "push" msgstr "push" -#: ../../SpinalHDL/Libraries/stream.rst:236 -#: ../../SpinalHDL/Libraries/stream.rst:298 -#: ../../SpinalHDL/Libraries/stream.rst:357 +#: ../../SpinalHDL/Libraries/stream.rst:246 +#: ../../SpinalHDL/Libraries/stream.rst:308 +#: ../../SpinalHDL/Libraries/stream.rst:367 msgid "Used to push elements" msgstr "用于压入数据" -#: ../../SpinalHDL/Libraries/stream.rst:237 -#: ../../SpinalHDL/Libraries/stream.rst:299 +#: ../../SpinalHDL/Libraries/stream.rst:247 +#: ../../SpinalHDL/Libraries/stream.rst:309 msgid "pop" msgstr "pop" -#: ../../SpinalHDL/Libraries/stream.rst:239 -#: ../../SpinalHDL/Libraries/stream.rst:301 -#: ../../SpinalHDL/Libraries/stream.rst:360 +#: ../../SpinalHDL/Libraries/stream.rst:249 +#: ../../SpinalHDL/Libraries/stream.rst:311 +#: ../../SpinalHDL/Libraries/stream.rst:370 msgid "Used to pop elements" msgstr "用于弹出数据" -#: ../../SpinalHDL/Libraries/stream.rst:240 +#: ../../SpinalHDL/Libraries/stream.rst:250 msgid "flush" msgstr "flush" -#: ../../SpinalHDL/Libraries/stream.rst:242 +#: ../../SpinalHDL/Libraries/stream.rst:252 msgid "Used to remove all elements inside the FIFO" msgstr "用于清除FIFO内的所有数据" -#: ../../SpinalHDL/Libraries/stream.rst:243 +#: ../../SpinalHDL/Libraries/stream.rst:253 msgid "occupancy" msgstr "occupancy" -#: ../../SpinalHDL/Libraries/stream.rst:244 -#: ../../SpinalHDL/Libraries/stream.rst:303 -#: ../../SpinalHDL/Libraries/stream.rst:306 +#: ../../SpinalHDL/Libraries/stream.rst:254 +#: ../../SpinalHDL/Libraries/stream.rst:313 +#: ../../SpinalHDL/Libraries/stream.rst:316 msgid "UInt of log2Up(depth + 1) bits" msgstr "log2Up(depth + 1) bits 的 UInt" -#: ../../SpinalHDL/Libraries/stream.rst:245 +#: ../../SpinalHDL/Libraries/stream.rst:255 msgid "Indicate the internal memory occupancy" msgstr "反映内部存储占用情况" -#: ../../SpinalHDL/Libraries/stream.rst:249 +#: ../../SpinalHDL/Libraries/stream.rst:259 msgid "StreamFifoCC" msgstr "StreamFifoCC" -#: ../../SpinalHDL/Libraries/stream.rst:251 +#: ../../SpinalHDL/Libraries/stream.rst:261 msgid "" -"You can instantiate the dual clock domain version of the fifo the following " -"way :" +"You can instantiate the dual clock domain version of the fifo the " +"following way :" msgstr "您可以通过以下方式实例化双时钟域版本的fifo:" -#: ../../SpinalHDL/Libraries/stream.rst:281 +#: ../../SpinalHDL/Libraries/stream.rst:291 msgid "pushClock" msgstr "pushClock" -#: ../../SpinalHDL/Libraries/stream.rst:282 -#: ../../SpinalHDL/Libraries/stream.rst:285 -#: ../../SpinalHDL/Libraries/stream.rst:341 -#: ../../SpinalHDL/Libraries/stream.rst:344 +#: ../../SpinalHDL/Libraries/stream.rst:292 +#: ../../SpinalHDL/Libraries/stream.rst:295 +#: ../../SpinalHDL/Libraries/stream.rst:351 +#: ../../SpinalHDL/Libraries/stream.rst:354 msgid "ClockDomain" msgstr "ClockDomain" -#: ../../SpinalHDL/Libraries/stream.rst:283 -#: ../../SpinalHDL/Libraries/stream.rst:342 +#: ../../SpinalHDL/Libraries/stream.rst:293 +#: ../../SpinalHDL/Libraries/stream.rst:352 msgid "Clock domain used by the push side" msgstr "压入数据端使用的时钟域" -#: ../../SpinalHDL/Libraries/stream.rst:284 +#: ../../SpinalHDL/Libraries/stream.rst:294 msgid "popClock" msgstr "popClock" -#: ../../SpinalHDL/Libraries/stream.rst:286 -#: ../../SpinalHDL/Libraries/stream.rst:345 +#: ../../SpinalHDL/Libraries/stream.rst:296 +#: ../../SpinalHDL/Libraries/stream.rst:355 msgid "Clock domain used by the pop side" msgstr "弹出数据端使用的时钟域" -#: ../../SpinalHDL/Libraries/stream.rst:302 +#: ../../SpinalHDL/Libraries/stream.rst:312 msgid "pushOccupancy" msgstr "pushOccupancy" -#: ../../SpinalHDL/Libraries/stream.rst:304 -msgid "" -"Indicate the internal memory occupancy (from the push side perspective)" +#: ../../SpinalHDL/Libraries/stream.rst:314 +msgid "Indicate the internal memory occupancy (from the push side perspective)" msgstr "反映内部存储器占用情况(从压入数据端的角度)" -#: ../../SpinalHDL/Libraries/stream.rst:305 +#: ../../SpinalHDL/Libraries/stream.rst:315 msgid "popOccupancy" msgstr "popOccupancy" -#: ../../SpinalHDL/Libraries/stream.rst:307 -msgid "" -"Indicate the internal memory occupancy (from the pop side perspective)" +#: ../../SpinalHDL/Libraries/stream.rst:317 +msgid "Indicate the internal memory occupancy (from the pop side perspective)" msgstr "反映内部存储器占用情况(从弹出数据端的角度)" -#: ../../SpinalHDL/Libraries/stream.rst:311 +#: ../../SpinalHDL/Libraries/stream.rst:321 msgid "StreamCCByToggle" msgstr "StreamCCByToggle" -#: ../../SpinalHDL/Libraries/stream.rst:313 +#: ../../SpinalHDL/Libraries/stream.rst:323 msgid "" "Component that connects Streams across clock domains based on toggling " "signals." msgstr "基于信号切换来连接跨时钟域的反压流组件。" -#: ../../SpinalHDL/Libraries/stream.rst:314 +#: ../../SpinalHDL/Libraries/stream.rst:324 msgid "" -"This way of implementing a cross clock domain bridge is characterized by a " -"small area usage but also a low bandwidth." +"This way of implementing a cross clock domain bridge is characterized by " +"a small area usage but also a low bandwidth." msgstr "这种实现跨时钟域桥的方式的特点是占用逻辑区小,但带宽较低。" -#: ../../SpinalHDL/Libraries/stream.rst:340 +#: ../../SpinalHDL/Libraries/stream.rst:350 msgid "inputClock" msgstr "inputClock" -#: ../../SpinalHDL/Libraries/stream.rst:343 +#: ../../SpinalHDL/Libraries/stream.rst:353 msgid "outputClock" msgstr "outputClock" -#: ../../SpinalHDL/Libraries/stream.rst:355 +#: ../../SpinalHDL/Libraries/stream.rst:365 msgid "input" msgstr "input" -#: ../../SpinalHDL/Libraries/stream.rst:358 +#: ../../SpinalHDL/Libraries/stream.rst:368 msgid "output" msgstr "output" -#: ../../SpinalHDL/Libraries/stream.rst:363 +#: ../../SpinalHDL/Libraries/stream.rst:373 msgid "" -"Alternatively you can also use a this shorter syntax which directly return " -"you the cross clocked stream:" +"Alternatively you can also use a this shorter syntax which directly " +"return you the cross clocked stream:" msgstr "或者您也可以使用更简短的语句,直接返回跨时钟域的反压流:" -#: ../../SpinalHDL/Libraries/stream.rst:377 +#: ../../SpinalHDL/Libraries/stream.rst:387 msgid "StreamWidthAdapter" msgstr "StreamWidthAdapter(反压流位宽适应器)" -#: ../../SpinalHDL/Libraries/stream.rst:379 +#: ../../SpinalHDL/Libraries/stream.rst:389 msgid "" -"This component adapts the width of the input stream to the output stream. " -"When the width of the ``outStream`` payload is greater than the " -"``inStream``, by combining the payloads of several input transactions into " -"one; conversely, if the payload width of the ``outStream`` is less than the " -"``inStream``, one input transaction will be split into several output " -"transactions." +"This component adapts the width of the input stream to the output stream." +" When the width of the ``outStream`` payload is greater than the " +"``inStream``, by combining the payloads of several input transactions " +"into one; conversely, if the payload width of the ``outStream`` is less " +"than the ``inStream``, one input transaction will be split into several " +"output transactions." msgstr "" -"该组件使输入反压流的位宽和输出反压流匹配。当 ``outStream`` 的负载的位宽大于 " -"``inStream`` 时,通过将多个输入传输任务的负载合并为一个;相反,如果 " -"``outStream`` 的负载位宽小于 ``inStream`` " +"该组件使输入反压流的位宽和输出反压流匹配。当 ``outStream`` 的负载的位宽大于 ``inStream`` " +"时,通过将多个输入传输任务的负载合并为一个;相反,如果 ``outStream`` 的负载位宽小于 ``inStream`` " ",则一个输入传输任务将被拆分为多个输出传输任务。" -#: ../../SpinalHDL/Libraries/stream.rst:382 +#: ../../SpinalHDL/Libraries/stream.rst:392 msgid "" -"In the best case, the width of the payload of the ``inStream`` should be an " -"integer multiple of the ``outStream`` as shown below." -msgstr "在最好的情况下, ``inStream`` 的负载位宽应该是 ``outStream`` " -"的整数倍,如下所示。" +"In the best case, the width of the payload of the ``inStream`` should be " +"an integer multiple of the ``outStream`` as shown below." +msgstr "在最好的情况下, ``inStream`` 的负载位宽应该是 ``outStream`` 的整数倍,如下所示。" -#: ../../SpinalHDL/Libraries/stream.rst:390 +#: ../../SpinalHDL/Libraries/stream.rst:400 msgid "" -"As in the example above, the two ``inStream`` transactions will be merged " -"into one ``outStream`` transaction, and the payload of the first input " +"As in the example above, the two ``inStream`` transactions will be merged" +" into one ``outStream`` transaction, and the payload of the first input " "transaction will be placed on the lower bits of the output payload by " "default." msgstr "" "如上例所示,两个 ``inStream`` 传输任务将合并为一个 ``outStream`` " "传输任务,并且第一个输入传输任务的负载将默认置于输出负载的低位上。" -#: ../../SpinalHDL/Libraries/stream.rst:392 +#: ../../SpinalHDL/Libraries/stream.rst:402 msgid "" -"If the expected order of input transaction payload placement is different " -"from the default setting, here is an example." +"If the expected order of input transaction payload placement is different" +" from the default setting, here is an example." msgstr "如果输入传输任务负载放置的期望顺序与默认设置不同,请参阅以下示例。" -#: ../../SpinalHDL/Libraries/stream.rst:400 +#: ../../SpinalHDL/Libraries/stream.rst:410 msgid "" -"There is also a traditional parameter called ``endianness``, which has the " -"same effect as ``ORDER``. The value of ``endianness`` is the same as " +"There is also a traditional parameter called ``endianness``, which has " +"the same effect as ``ORDER``. The value of ``endianness`` is the same as " "``LOWER_FIRST`` of ``order`` when it is ``LITTLE``, and the same as " "``HIGHER_FIRST`` when it is ``BIG``. The ``padding`` parameter is an " -"optional boolean value to determine whether the adapter accepts non-integer " -"multiples of the input and output payload width." +"optional boolean value to determine whether the adapter accepts non-" +"integer multiples of the input and output payload width." msgstr "" -"还有一个称为 ``endianness`` 的传统参数,它与 ``ORDER`` 具有相同的效果。当 " -"``endianness`` 的值为 ``LITTLE`` 时,它与 ``order`` 的 ``LOWER_FIRST`` 相同;" -"当为 ``BIG`` 时,它与 ``HIGHER_FIRST`` 相同。 ``padding`` 参数是一个可选的布" -"尔逻辑值,它用于确定适应器是否接受输入和输出负载位宽为非整数倍。" +"还有一个称为 ``endianness`` 的传统参数,它与 ``ORDER`` 具有相同的效果。当 ``endianness`` 的值为 " +"``LITTLE`` 时,它与 ``order`` 的 ``LOWER_FIRST`` 相同;当为 ``BIG`` 时,它与 " +"``HIGHER_FIRST`` 相同。 ``padding`` " +"参数是一个可选的布尔逻辑值,它用于确定适应器是否接受输入和输出负载位宽为非整数倍。" -#: ../../SpinalHDL/Libraries/stream.rst:406 +#: ../../SpinalHDL/Libraries/stream.rst:416 msgid "StreamArbiter" msgstr "StreamArbiter(反压流仲裁器)" -#: ../../SpinalHDL/Libraries/stream.rst:408 +#: ../../SpinalHDL/Libraries/stream.rst:418 msgid "" "When you have multiple Streams and you want to arbitrate them to drive a " "single one, you can use the StreamArbiterFactory." -msgstr "当您有多个Stream反压流并且您想要仲裁它们以驱动单个反压流时,您可以使用 " -"StreamArbiterFactory。" +msgstr "当您有多个Stream反压流并且您想要仲裁它们以驱动单个反压流时,您可以使用 StreamArbiterFactory。" -#: ../../SpinalHDL/Libraries/stream.rst:422 +#: ../../SpinalHDL/Libraries/stream.rst:432 msgid "Arbitration functions" msgstr "仲裁函数" -#: ../../SpinalHDL/Libraries/stream.rst:424 +#: ../../SpinalHDL/Libraries/stream.rst:434 msgid "lowerFirst" msgstr "lowerFirst" -#: ../../SpinalHDL/Libraries/stream.rst:425 +#: ../../SpinalHDL/Libraries/stream.rst:435 msgid "Lower port have priority over higher port" msgstr "较低端口优先级高于较高端口" -#: ../../SpinalHDL/Libraries/stream.rst:426 +#: ../../SpinalHDL/Libraries/stream.rst:436 msgid "roundRobin" msgstr "roundRobin" -#: ../../SpinalHDL/Libraries/stream.rst:427 +#: ../../SpinalHDL/Libraries/stream.rst:437 msgid "Fair round robin arbitration" msgstr "公平轮询仲裁" -#: ../../SpinalHDL/Libraries/stream.rst:428 +#: ../../SpinalHDL/Libraries/stream.rst:438 msgid "sequentialOrder" msgstr "sequentialOrder" @@ -698,31 +724,31 @@ msgstr "可用于按顺序遍历任务" msgid "First transaction should come from port zero, then from port one, ..." msgstr "第一个传输应该来自端口 0,然后来自端口 1,..." -#: ../../SpinalHDL/Libraries/stream.rst:437 +#: ../../SpinalHDL/Libraries/stream.rst:447 msgid "Lock functions" msgstr "锁函数" -#: ../../SpinalHDL/Libraries/stream.rst:439 +#: ../../SpinalHDL/Libraries/stream.rst:449 msgid "noLock" msgstr "noLock" -#: ../../SpinalHDL/Libraries/stream.rst:440 +#: ../../SpinalHDL/Libraries/stream.rst:450 msgid "" -"The port selection could change every cycle, even if the transaction on the " -"selected port is not consumed." +"The port selection could change every cycle, even if the transaction on " +"the selected port is not consumed." msgstr "端口选择可以在每个周期改变,即使被选择的端口的传输没有执行。" -#: ../../SpinalHDL/Libraries/stream.rst:441 +#: ../../SpinalHDL/Libraries/stream.rst:451 msgid "transactionLock" msgstr "transactionLock" -#: ../../SpinalHDL/Libraries/stream.rst:442 +#: ../../SpinalHDL/Libraries/stream.rst:452 msgid "" -"The port selection is locked until the transaction on the selected port is " -"consumed." +"The port selection is locked until the transaction on the selected port " +"is consumed." msgstr "端口选择被锁定,直到所选端口上的数据传输完成。" -#: ../../SpinalHDL/Libraries/stream.rst:443 +#: ../../SpinalHDL/Libraries/stream.rst:453 msgid "fragmentLock" msgstr "fragmentLock" @@ -732,193 +758,183 @@ msgstr "可用于仲裁 Stream[Flow[T]]。" #: ../../SpinalHDL/Libraries/stream.rst msgid "" -"In this mode, the port selection is locked until the selected port finish is" -" burst (last=True)." +"In this mode, the port selection is locked until the selected port finish" +" is burst (last=True)." msgstr "在此模式下,端口选择被锁定,直到所选端口完成突发(last=True)。" -#: ../../SpinalHDL/Libraries/stream.rst:452 +#: ../../SpinalHDL/Libraries/stream.rst:462 msgid "Generation functions" msgstr "生成函数" -#: ../../SpinalHDL/Libraries/stream.rst:454 +#: ../../SpinalHDL/Libraries/stream.rst:464 msgid "on(inputs : Seq[Stream[T]])" msgstr "on(inputs : Seq[Stream[T]])" -#: ../../SpinalHDL/Libraries/stream.rst:456 +#: ../../SpinalHDL/Libraries/stream.rst:466 msgid "onArgs(inputs : Stream[T]*)" msgstr "onArgs(inputs : Stream[T]*)" -#: ../../SpinalHDL/Libraries/stream.rst:460 +#: ../../SpinalHDL/Libraries/stream.rst:470 msgid "StreamJoin" msgstr "StreamJoin" -#: ../../SpinalHDL/Libraries/stream.rst:462 +#: ../../SpinalHDL/Libraries/stream.rst:472 msgid "" -"This utility takes multiple input streams and waits until all of them fire " -"`valid` before letting all of them through by providing `ready`." -msgstr "该实用工具接收多个输入反压流并等待所有输入反压流触发 `valid` ," -"然后再通过提供 `ready` 信号让所有输入流通过。" +"This utility takes multiple input streams and waits until all of them " +"fire `valid` before letting all of them through by providing `ready`." +msgstr "该实用工具接收多个输入反压流并等待所有输入反压流触发 `valid` ,然后再通过提供 `ready` 信号让所有输入流通过。" -#: ../../SpinalHDL/Libraries/stream.rst:471 +#: ../../SpinalHDL/Libraries/stream.rst:481 msgid "StreamFork" msgstr "StreamFork" -#: ../../SpinalHDL/Libraries/stream.rst:473 +#: ../../SpinalHDL/Libraries/stream.rst:483 msgid "" "A StreamFork will clone each incoming data to all its output streams. If " "synchronous is true, all output streams will always fire together, which " "means that the stream will halt until all output streams are ready. If " -"synchronous is false, output streams may be ready one at a time, at the cost" -" of an additional flip flop (1 bit per output). The input stream will block " -"until all output streams have processed each item regardlessly." -msgstr "" -"StreamFork会将每个传入数据克隆到其所有输出流。如果synchronous为true,则所有输" -"出流将始终一起触发,这意味着直到所有输出流准备就绪前该流将都将暂停。如果synch" -"ronous为false,那么一次可能只有一个输出流准备就绪,但需要一个额外的触发器(每" -"个输出1位)。直到所有输出流都处理完每个项目前,输入流将阻塞。" +"synchronous is false, output streams may be ready one at a time, at the " +"cost of an additional flip flop (1 bit per output). The input stream will" +" block until all output streams have processed each item regardlessly." +msgstr "StreamFork会将每个传入数据克隆到其所有输出流。如果synchronous为true,则所有输出流将始终一起触发,这意味着直到所有输出流准备就绪前该流将都将暂停。如果synchronous为false,那么一次可能只有一个输出流准备就绪,但需要一个额外的触发器(每个输出1位)。直到所有输出流都处理完每个项目前,输入流将阻塞。" -#: ../../SpinalHDL/Libraries/stream.rst:485 +#: ../../SpinalHDL/Libraries/stream.rst:495 msgid "or" msgstr "或者" -#: ../../SpinalHDL/Libraries/stream.rst:493 +#: ../../SpinalHDL/Libraries/stream.rst:503 msgid "StreamMux" msgstr "StreamMux" -#: ../../SpinalHDL/Libraries/stream.rst:495 +#: ../../SpinalHDL/Libraries/stream.rst:505 msgid "" "A mux implementation for ``Stream``. It takes a ``select`` signal and " -"streams in ``inputs``, and returns a ``Stream`` which is connected to one of" -" the input streams specified by ``select``. ``StreamArbiter`` is a facility " -"works similar to this but is more powerful." +"streams in ``inputs``, and returns a ``Stream`` which is connected to one" +" of the input streams specified by ``select``. ``StreamArbiter`` is a " +"facility works similar to this but is more powerful." msgstr "" -"``Stream`` 的多路复用器实现。它接受一个 ``select`` 信号和 ``inputs`` " -"中的反压流,并返回一个 ``Stream`` ,该 ``Stream`` 连接到 ``select`` " -"指定的其中一个输入流。 ``StreamArbiter`` 是一个与此类似的工具,但功能更强大。" +"``Stream`` 的多路复用器实现。它接受一个 ``select`` 信号和 ``inputs`` 中的反压流,并返回一个 " +"``Stream`` ,该 ``Stream`` 连接到 ``select`` 指定的其中一个输入流。 ``StreamArbiter`` " +"是一个与此类似的工具,但功能更强大。" -#: ../../SpinalHDL/Libraries/stream.rst:507 +#: ../../SpinalHDL/Libraries/stream.rst:517 msgid "" "The ``UInt`` type of ``select`` signal could not be changed while output " "stream is stalled, or it might break the transaction on the fly. Use " -"``Stream`` typed ``select`` can generate a stream interface which only fire " -"and change the routing when it is safe." +"``Stream`` typed ``select`` can generate a stream interface which only " +"fire and change the routing when it is safe." msgstr "" -"当输出流暂停时, ``select`` 信号的 ``UInt`` " -"类型不能更改,否则可能会中断执行中的传输任务。使用 ``Stream`` 类型的 " -"``select`` 可以生成一个流接口,该接口仅在安全时触发并更改路径。" +"当输出流暂停时, ``select`` 信号的 ``UInt`` 类型不能更改,否则可能会中断执行中的传输任务。使用 ``Stream`` 类型的" +" ``select`` 可以生成一个流接口,该接口仅在安全时触发并更改路径。" -#: ../../SpinalHDL/Libraries/stream.rst:512 +#: ../../SpinalHDL/Libraries/stream.rst:522 msgid "StreamDemux" msgstr "StreamDemux" -#: ../../SpinalHDL/Libraries/stream.rst:514 +#: ../../SpinalHDL/Libraries/stream.rst:524 msgid "" -"A demux implementation for ``Stream``. It takes a ``input``, a ``select`` " -"and a ``portCount`` and returns a ``Vec(Stream)`` where the output stream " -"specified by ``select`` is connected to ``input``, the other output streams " -"are inactive. For safe transaction, refer the notes above." +"A demux implementation for ``Stream``. It takes a ``input``, a ``select``" +" and a ``portCount`` and returns a ``Vec(Stream)`` where the output " +"stream specified by ``select`` is connected to ``input``, the other " +"output streams are inactive. For safe transaction, refer the notes above." msgstr "" -"``Stream`` 的解复用实现。它需要一个 ``input`` 、一个 ``select`` 和一个 " -"``portCount`` 并返回一个 ``Vec(Stream)`` ,其中输出流由 ``select`` " -"指定并连接到 ``input`` " +"``Stream`` 的解复用实现。它需要一个 ``input`` 、一个 ``select`` 和一个 ``portCount`` 并返回一个 " +"``Vec(Stream)`` ,其中输出流由 ``select`` 指定并连接到 ``input`` " ",其他输出流处于非活动状态。为了安全传输,请参阅上面的注释。" -#: ../../SpinalHDL/Libraries/stream.rst:525 +#: ../../SpinalHDL/Libraries/stream.rst:535 msgid "StreamDispatcherSequencial" msgstr "StreamDispatcherSequencial" -#: ../../SpinalHDL/Libraries/stream.rst:527 +#: ../../SpinalHDL/Libraries/stream.rst:537 msgid "" -"This util take its input stream and routes it to ``outputCount`` stream in a" -" sequential order." +"This util take its input stream and routes it to ``outputCount`` stream " +"in a sequential order." msgstr "该工具获取其输入流并将其按顺序连接到 ``outputCount`` 反压流。" -#: ../../SpinalHDL/Libraries/stream.rst:538 +#: ../../SpinalHDL/Libraries/stream.rst:548 msgid "StreamTransactionExtender" msgstr "StreamTransactionExtender" -#: ../../SpinalHDL/Libraries/stream.rst:540 +#: ../../SpinalHDL/Libraries/stream.rst:550 msgid "" "This utility will take one input transfer and generate several output " -"transfers, it provides the facility to repeat the payload value ``count+1`` " -"times into output transfers. The ``count`` is captured and registered each " -"time inputStream fires for an individual payload." +"transfers, it provides the facility to repeat the payload value " +"``count+1`` times into output transfers. The ``count`` is captured and " +"registered each time inputStream fires for an individual payload." msgstr "" "该工具将使用一个输入传输并生成多个输出传输,它提供了将负载值重复 ``count+1`` " -"次到输出传输的功能。每当为单个负载而触发inputStream时,都会捕获并寄存 " -"``count`` 。" +"次到输出传输的功能。每当为单个负载而触发inputStream时,都会捕获并寄存 ``count`` 。" -#: ../../SpinalHDL/Libraries/stream.rst:555 +#: ../../SpinalHDL/Libraries/stream.rst:565 msgid "" "This ``extender`` provides several status signals, such as ``working``, " "``last``, ``done`` where ``working`` means there is one input transfer " "accepted and in-progress, ``last`` indicates the last output transfer is " -"prepared and waiting to complete, ``done`` become valid represents the last " -"output transfer is fireing and making the current input transaction process " -"complete and ready to start another transaction." +"prepared and waiting to complete, ``done`` become valid represents the " +"last output transfer is fireing and making the current input transaction " +"process complete and ready to start another transaction." msgstr "" -"该 ``extender`` 提供了多种状态信号,例如 ``working`` 、 ``last`` 、``done`` " -",其中 ``working`` 表示有一个输入传输已接受并正在进行中, ``last`` " -"表示最后一个输出传输已准备好并等待完成,``done`` 变为有效表示最后一个输出传输" -"正在触发,并使当前输入传输任务处理完成且准备好启动另一个传输。" +"该 ``extender`` 提供了多种状态信号,例如 ``working`` 、 ``last`` 、``done`` ,其中 " +"``working`` 表示有一个输入传输已接受并正在进行中, ``last`` 表示最后一个输出传输已准备好并等待完成,``done`` " +"变为有效表示最后一个输出传输正在触发,并使当前输入传输任务处理完成且准备好启动另一个传输。" -#: ../../SpinalHDL/Libraries/stream.rst:572 +#: ../../SpinalHDL/Libraries/stream.rst:582 msgid "" "If only count for output stream is required then use " "``StreamTransactionCounter`` instead." msgstr "如果仅需要对输出流计数,那么可以使用 ``StreamTransactionCounter`` 。" -#: ../../SpinalHDL/Libraries/stream.rst:575 +#: ../../SpinalHDL/Libraries/stream.rst:585 msgid "Simulation support" msgstr "仿真支持" -#: ../../SpinalHDL/Libraries/stream.rst:577 +#: ../../SpinalHDL/Libraries/stream.rst:587 msgid "For simulation master and slave implementations are available:" msgstr "对于仿真,有以下可用的主端和从端实现:" -#: ../../SpinalHDL/Libraries/stream.rst:583 +#: ../../SpinalHDL/Libraries/stream.rst:593 msgid "Class" msgstr "类" -#: ../../SpinalHDL/Libraries/stream.rst:584 +#: ../../SpinalHDL/Libraries/stream.rst:594 msgid "Usage" msgstr "用法" -#: ../../SpinalHDL/Libraries/stream.rst:585 +#: ../../SpinalHDL/Libraries/stream.rst:595 msgid "StreamMonitor" msgstr "StreamMonitor" -#: ../../SpinalHDL/Libraries/stream.rst:586 +#: ../../SpinalHDL/Libraries/stream.rst:596 msgid "" -"Used for both master and slave sides, calls function with payload if Stream " -"fires." +"Used for both master and slave sides, calls function with payload if " +"Stream fires." msgstr "用于主端和从端,如果Stream触发,则调用带有负载的函数。" -#: ../../SpinalHDL/Libraries/stream.rst:587 +#: ../../SpinalHDL/Libraries/stream.rst:597 msgid "StreamDriver" msgstr "StreamDriver" -#: ../../SpinalHDL/Libraries/stream.rst:588 +#: ../../SpinalHDL/Libraries/stream.rst:598 msgid "" -"Testbench master side, drives values by calling function to apply value (if " -"available). Function must return if value was available. Supports random " -"delays." -msgstr "Testbench中主端通过调用函数来应用值(如果可用)以驱动值。如果值可用,则函数必" -"须返回。支持随机的延迟。" +"Testbench master side, drives values by calling function to apply value " +"(if available). Function must return if value was available. Supports " +"random delays." +msgstr "Testbench中主端通过调用函数来应用值(如果可用)以驱动值。如果值可用,则函数必须返回。支持随机的延迟。" -#: ../../SpinalHDL/Libraries/stream.rst:589 +#: ../../SpinalHDL/Libraries/stream.rst:599 msgid "StreamReadyRandmizer" msgstr "StreamReadyRandmizer" -#: ../../SpinalHDL/Libraries/stream.rst:590 -msgid "" -"Randomizes ``ready`` for reception of data, testbench is the slave side." +#: ../../SpinalHDL/Libraries/stream.rst:600 +msgid "Randomizes ``ready`` for reception of data, testbench is the slave side." msgstr "随机产生 ``ready`` 以接收数据,testbench为从端。" -#: ../../SpinalHDL/Libraries/stream.rst:591 +#: ../../SpinalHDL/Libraries/stream.rst:601 msgid "ScoreboardInOrder" msgstr "ScoreboardInOrder" -#: ../../SpinalHDL/Libraries/stream.rst:592 +#: ../../SpinalHDL/Libraries/stream.rst:602 msgid "Often used to compare reference/dut data" msgstr "通常用于比较参考/dut数据" + From e948f565b5a16cf1e593100e238aec705a274143 Mon Sep 17 00:00:00 2001 From: Readon Date: Fri, 14 Jun 2024 01:37:17 +0000 Subject: [PATCH 05/12] Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (38 of 38 strings) Translation: SpinalDoc-RTD/SpinalHDL/Semantic/when_switch Translate-URL: https://hosted.weblate.org/projects/spinaldoc-rtd/spinalhdlsemanticwhen_switch/zh_Hans/ --- .../SpinalHDL/Semantic/when_switch.po | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/when_switch.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/when_switch.po index 7827b748d01..228583373c3 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/when_switch.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Semantic/when_switch.po @@ -1,25 +1,25 @@ - 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 Language:zh_CNLanguage-Team:zh_CN " -"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 " -"Language-Team:LANGUAGE 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 " +"Language:zh_CNLanguage-Team:zh_CN 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 Language-Team:LANGUAGE MIME-Version:1.0Content-Type:text/plain; " +"charset=UTF-8\n" "POT-Creation-Date: 2024-05-29 12:39+0000\n" -"PO-Revision-Date: 2023-12-18 09:29+0000\n" +"PO-Revision-Date: 2024-06-14 01:40+0000\n" "Last-Translator: Readon \n" +"Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" -"Language-Team: Chinese (Simplified) \n" -"Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 5.6-dev\n" "Generated-By: Babel 2.15.0\n" #: ../../SpinalHDL/Semantic/when_switch.rst:2 @@ -48,27 +48,29 @@ msgstr "但如果 ``.otherwise`` 在另一行,则**需要**一个点:" #: ../../SpinalHDL/Semantic/when_switch.rst:44 msgid "WhenBuilder" -msgstr "" +msgstr "WhenBuilder" #: ../../SpinalHDL/Semantic/when_switch.rst:46 msgid "" "Sometimes we need to generate some parameters for the when condition, and" " the original structure of when else is not very suitable. Therefore, we " "provide a 'whenBuilder' method to achieve this goal" -msgstr "" +msgstr "有时需要为when条件生成一些参数,而when " +"else结构并不太合适。因此,我们提供了一个'whenBuilder'方法来实现这个目标" #: ../../SpinalHDL/Semantic/when_switch.rst:73 msgid "" "Compared to the when/elsewhen/otherwise approach, it might be more " "convenient for parameterization. we can also use like this" -msgstr "" +msgstr "与when/elsewhen/otherwise方法相比,它可能更方便于参数化。我们也可以这样使用" #: ../../SpinalHDL/Semantic/when_switch.rst:94 msgid "" "This way, we can parameterize priority circuits similar to how we use " "'foreach' inside 'switch()', and generate code in a more intuitive if-" "else format." -msgstr "" +msgstr "这样,我们可以像在 `switch()` 中使用 `foreach` 一样,对优先级电路进行参数化" +",并以更直观的if-else格式生成代码。" #: ../../SpinalHDL/Semantic/when_switch.rst:98 msgid "Switch" @@ -239,4 +241,3 @@ msgstr "下面是将 128 位的 ``Bits`` 划分为 32 位的示例:" #: ../../SpinalHDL/Semantic/when_switch.rst:293 msgid "Example for ``muxListDc`` selecting bits from a configurable width vector:" msgstr "下面是 ``muxListDc`` 的案例,从可配置位宽的向量中选择多个位:" - From ff855a0f64040b3b7466836d5e2077046181dd8a Mon Sep 17 00:00:00 2001 From: Readon Date: Fri, 14 Jun 2024 01:34:36 +0000 Subject: [PATCH 06/12] Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (179 of 179 strings) Translation: SpinalDoc-RTD/SpinalHDL/Libraries/stream Translate-URL: https://hosted.weblate.org/projects/spinaldoc-rtd/spinalhdllibrariesstream/zh_Hans/ --- .../LC_MESSAGES/SpinalHDL/Libraries/stream.po | 42 +++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po index e4176667720..07d36424647 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po @@ -1,25 +1,25 @@ - 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 Language:zh_CNLanguage-Team:zh_CN " -"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 " -"Language-Team:LANGUAGE 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 " +"Language:zh_CNLanguage-Team:zh_CN 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 Language-Team:LANGUAGE MIME-Version:1.0Content-Type:text/plain; " +"charset=UTF-8\n" "POT-Creation-Date: 2024-06-14 01:22+0000\n" -"PO-Revision-Date: 2024-03-30 16:13+0000\n" +"PO-Revision-Date: 2024-06-14 01:40+0000\n" "Last-Translator: Readon \n" +"Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" -"Language-Team: Chinese (Simplified) \n" -"Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 5.6-dev\n" "Generated-By: Babel 2.15.0\n" #: ../../SpinalHDL/Libraries/stream.rst:7 @@ -406,32 +406,31 @@ msgstr "当cond为true时,传输数据将被抛弃" #: ../../SpinalHDL/Libraries/stream.rst:170 msgid "x.translateWith(that : T2)" -msgstr "" +msgstr "x.translateWith(that : T2)" #: ../../SpinalHDL/Libraries/stream.rst -#, fuzzy msgid "Return a Stream with payload `that`" -msgstr "返回连接到x的反压流" +msgstr "返回带有效载荷 `that` 的流" #: ../../SpinalHDL/Libraries/stream.rst msgid "" "Modify the payload of the `x` stream, while preserving the `valid` and " "`ready` signals" -msgstr "" +msgstr "修改 `x` 流的有效载荷,同时保留 `valid` 和 `ready` 信号" #: ../../SpinalHDL/Libraries/stream.rst:175 msgid "x.translateBy(drive: (T) => T2)" -msgstr "" +msgstr "x.translateBy(drive: (T) => T2)" #: ../../SpinalHDL/Libraries/stream.rst msgid "Return a Stream with payload calculated by drive function" -msgstr "" +msgstr "返回包含 `drive` 函数计算的有效载荷的数据流" #: ../../SpinalHDL/Libraries/stream.rst msgid "" "Modify the payload of the `x` stream by the `drive` function, while " "preserving the `valid` and `ready` signals" -msgstr "" +msgstr "修改 `x` 流的有效载荷为 `drive` 函数返回值,同时保留 `valid` 和 `ready` 信号" #: ../../SpinalHDL/Libraries/stream.rst:182 msgid "The following code will create this logic :" @@ -937,4 +936,3 @@ msgstr "ScoreboardInOrder" #: ../../SpinalHDL/Libraries/stream.rst:602 msgid "Often used to compare reference/dut data" msgstr "通常用于比较参考/dut数据" - From 5c15aa0c7f963c028255399bde258d4d8e77c273 Mon Sep 17 00:00:00 2001 From: Readon Date: Fri, 14 Jun 2024 01:47:44 +0000 Subject: [PATCH 07/12] Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (179 of 179 strings) Translation: SpinalDoc-RTD/SpinalHDL/Libraries/stream Translate-URL: https://hosted.weblate.org/projects/spinaldoc-rtd/spinalhdllibrariesstream/zh_Hans/ --- .../locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po index 07d36424647..eb5788b4c79 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po @@ -10,7 +10,7 @@ msgstr "" ">Language-Team:LANGUAGE MIME-Version:1.0Content-Type:text/plain; " "charset=UTF-8\n" "POT-Creation-Date: 2024-06-14 01:22+0000\n" -"PO-Revision-Date: 2024-06-14 01:40+0000\n" +"PO-Revision-Date: 2024-06-14 01:51+0000\n" "Last-Translator: Readon \n" "Language-Team: Chinese (Simplified) \n" @@ -32,7 +32,7 @@ msgstr "规范" #: ../../SpinalHDL/Libraries/stream.rst:12 msgid "The Stream interface is a simple handshake protocol to carry payload." -msgstr "反压数据流接口(Stream)是一个用于承载有效负载的简单握手协议。" +msgstr "反压流(Stream)是一个用于承载有效负载的简单握手协议。" #: ../../SpinalHDL/Libraries/stream.rst:13 msgid "" @@ -424,7 +424,7 @@ msgstr "x.translateBy(drive: (T) => T2)" #: ../../SpinalHDL/Libraries/stream.rst msgid "Return a Stream with payload calculated by drive function" -msgstr "返回包含 `drive` 函数计算的有效载荷的数据流" +msgstr "返回包含 `drive` 函数计算的有效载荷的流" #: ../../SpinalHDL/Libraries/stream.rst msgid "" From af3834474f527491901e44f0de81f8f51c673d45 Mon Sep 17 00:00:00 2001 From: Xiao Yindong Date: Fri, 14 Jun 2024 18:30:58 +0800 Subject: [PATCH 08/12] use map but translateBy. --- source/SpinalHDL/Libraries/stream.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/SpinalHDL/Libraries/stream.rst b/source/SpinalHDL/Libraries/stream.rst index a9682bb8c91..35c96dea2f0 100644 --- a/source/SpinalHDL/Libraries/stream.rst +++ b/source/SpinalHDL/Libraries/stream.rst @@ -172,9 +172,9 @@ Functions | Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals - Stream[T] - 0 - * - x.translateBy(drive: (T) => T2) - - | Return a Stream with payload calculated by drive function - | Modify the payload of the `x` stream by the `drive` function, while preserving the `valid` and `ready` signals + * - x.map(translate: (T) => T2) + - | Return a Stream with payload calculated by translate function + | Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals - Stream[T] - 0 From b01c6f30cd2d94b380c600469121e43897e80bc3 Mon Sep 17 00:00:00 2001 From: GiHub Action Bot Date: Fri, 14 Jun 2024 10:32:47 +0000 Subject: [PATCH 09/12] update .pot files --- .../gettext/SpinalHDL/Libraries/stream.pot | 10 ++-- .../LC_MESSAGES/SpinalHDL/Libraries/stream.po | 48 ++++++++++--------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/source/locale/gettext/SpinalHDL/Libraries/stream.pot b/source/locale/gettext/SpinalHDL/Libraries/stream.pot index 2483c2b4859..2e4c69739a3 100644 --- a/source/locale/gettext/SpinalHDL/Libraries/stream.pot +++ b/source/locale/gettext/SpinalHDL/Libraries/stream.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: SpinalHDL \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-14 01:22+0000\n" +"POT-Creation-Date: 2024-06-14 10:32+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -393,15 +393,11 @@ msgid "Modify the payload of the `x` stream, while preserving the `valid` and `r msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:175 -msgid "x.translateBy(drive: (T) => T2)" +msgid "x.map(translate: (T) => T2)" msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:0 -msgid "Return a Stream with payload calculated by drive function" -msgstr "" - -#: ../../SpinalHDL/Libraries/stream.rst:0 -msgid "Modify the payload of the `x` stream by the `drive` function, while preserving the `valid` and `ready` signals" +msgid "Return a Stream with payload calculated by translate function" msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:182 diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po index eb5788b4c79..11916a2df16 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po @@ -1,25 +1,25 @@ + 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 " -"Language:zh_CNLanguage-Team:zh_CN 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 Language-Team:LANGUAGE MIME-Version:1.0Content-Type:text/plain; " -"charset=UTF-8\n" -"POT-Creation-Date: 2024-06-14 01:22+0000\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 Language:zh_CNLanguage-Team:zh_CN " +"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 " +"Language-Team:LANGUAGE MIME-Version:1.0Content-" +"Type:text/plain; charset=UTF-8\n" +"POT-Creation-Date: 2024-06-14 10:32+0000\n" "PO-Revision-Date: 2024-06-14 01:51+0000\n" "Last-Translator: Readon \n" -"Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" +"Language-Team: Chinese (Simplified) \n" +"Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 5.6-dev\n" "Generated-By: Babel 2.15.0\n" #: ../../SpinalHDL/Libraries/stream.rst:7 @@ -419,19 +419,15 @@ msgid "" msgstr "修改 `x` 流的有效载荷,同时保留 `valid` 和 `ready` 信号" #: ../../SpinalHDL/Libraries/stream.rst:175 -msgid "x.translateBy(drive: (T) => T2)" +#, fuzzy +msgid "x.map(translate: (T) => T2)" msgstr "x.translateBy(drive: (T) => T2)" #: ../../SpinalHDL/Libraries/stream.rst -msgid "Return a Stream with payload calculated by drive function" +#, fuzzy +msgid "Return a Stream with payload calculated by translate function" msgstr "返回包含 `drive` 函数计算的有效载荷的流" -#: ../../SpinalHDL/Libraries/stream.rst -msgid "" -"Modify the payload of the `x` stream by the `drive` function, while " -"preserving the `valid` and `ready` signals" -msgstr "修改 `x` 流的有效载荷为 `drive` 函数返回值,同时保留 `valid` 和 `ready` 信号" - #: ../../SpinalHDL/Libraries/stream.rst:182 msgid "The following code will create this logic :" msgstr "以下代码将创建此逻辑:" @@ -936,3 +932,11 @@ msgstr "ScoreboardInOrder" #: ../../SpinalHDL/Libraries/stream.rst:602 msgid "Often used to compare reference/dut data" msgstr "通常用于比较参考/dut数据" + +#~ msgid "" +#~ "Modify the payload of the `x` " +#~ "stream by the `drive` function, while" +#~ " preserving the `valid` and `ready` " +#~ "signals" +#~ msgstr "修改 `x` 流的有效载荷为 `drive` 函数返回值,同时保留 `valid` 和 `ready` 信号" + From b60ff0138c06307eddacda641f4e75301a7816de Mon Sep 17 00:00:00 2001 From: Xiao Yindong Date: Fri, 14 Jun 2024 21:15:33 +0800 Subject: [PATCH 10/12] fix payload type. --- source/SpinalHDL/Libraries/stream.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/SpinalHDL/Libraries/stream.rst b/source/SpinalHDL/Libraries/stream.rst index 35c96dea2f0..215af784624 100644 --- a/source/SpinalHDL/Libraries/stream.rst +++ b/source/SpinalHDL/Libraries/stream.rst @@ -170,12 +170,12 @@ Functions * - x.translateWith(that : T2) - | Return a Stream with payload `that` | Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals - - Stream[T] + - Stream[T2] - 0 * - x.map(translate: (T) => T2) - | Return a Stream with payload calculated by translate function | Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals - - Stream[T] + - Stream[T2] - 0 From 26b7610fd5de9f36179d74b9cd157d45e6ab3af7 Mon Sep 17 00:00:00 2001 From: GiHub Action Bot Date: Fri, 14 Jun 2024 13:17:24 +0000 Subject: [PATCH 11/12] update .pot files --- source/locale/gettext/SpinalHDL/Libraries/stream.pot | 9 ++++++--- .../zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po | 10 +++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/source/locale/gettext/SpinalHDL/Libraries/stream.pot b/source/locale/gettext/SpinalHDL/Libraries/stream.pot index 2e4c69739a3..ed254109b7f 100644 --- a/source/locale/gettext/SpinalHDL/Libraries/stream.pot +++ b/source/locale/gettext/SpinalHDL/Libraries/stream.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: SpinalHDL \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-14 10:32+0000\n" +"POT-Creation-Date: 2024-06-14 13:17+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -198,8 +198,6 @@ msgstr "" #: ../../SpinalHDL/Libraries/stream.rst:137 #: ../../SpinalHDL/Libraries/stream.rst:163 #: ../../SpinalHDL/Libraries/stream.rst:168 -#: ../../SpinalHDL/Libraries/stream.rst:173 -#: ../../SpinalHDL/Libraries/stream.rst:178 #: ../../SpinalHDL/Libraries/stream.rst:245 #: ../../SpinalHDL/Libraries/stream.rst:248 #: ../../SpinalHDL/Libraries/stream.rst:307 @@ -392,6 +390,11 @@ msgstr "" msgid "Modify the payload of the `x` stream, while preserving the `valid` and `ready` signals" msgstr "" +#: ../../SpinalHDL/Libraries/stream.rst:173 +#: ../../SpinalHDL/Libraries/stream.rst:178 +msgid "Stream[T2]" +msgstr "" + #: ../../SpinalHDL/Libraries/stream.rst:175 msgid "x.map(translate: (T) => T2)" msgstr "" diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po index 11916a2df16..70f7ffb7af5 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po @@ -10,7 +10,7 @@ msgstr "" "+0800PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME " "Language-Team:LANGUAGE MIME-Version:1.0Content-" "Type:text/plain; charset=UTF-8\n" -"POT-Creation-Date: 2024-06-14 10:32+0000\n" +"POT-Creation-Date: 2024-06-14 13:17+0000\n" "PO-Revision-Date: 2024-06-14 01:51+0000\n" "Last-Translator: Readon \n" "Language: zh_CN\n" @@ -222,8 +222,6 @@ msgstr "创建一个给定类型的Stream反压流" #: ../../SpinalHDL/Libraries/stream.rst:137 #: ../../SpinalHDL/Libraries/stream.rst:163 #: ../../SpinalHDL/Libraries/stream.rst:168 -#: ../../SpinalHDL/Libraries/stream.rst:173 -#: ../../SpinalHDL/Libraries/stream.rst:178 #: ../../SpinalHDL/Libraries/stream.rst:245 #: ../../SpinalHDL/Libraries/stream.rst:248 #: ../../SpinalHDL/Libraries/stream.rst:307 @@ -418,6 +416,12 @@ msgid "" "`ready` signals" msgstr "修改 `x` 流的有效载荷,同时保留 `valid` 和 `ready` 信号" +#: ../../SpinalHDL/Libraries/stream.rst:173 +#: ../../SpinalHDL/Libraries/stream.rst:178 +#, fuzzy +msgid "Stream[T2]" +msgstr "Stream[T]" + #: ../../SpinalHDL/Libraries/stream.rst:175 #, fuzzy msgid "x.map(translate: (T) => T2)" From c46473076e42e6cc16bbe1100bbed8439f6f143e Mon Sep 17 00:00:00 2001 From: Readon Date: Sat, 15 Jun 2024 00:17:17 +0000 Subject: [PATCH 12/12] Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (179 of 179 strings) Translation: SpinalDoc-RTD/SpinalHDL/Libraries/stream Translate-URL: https://hosted.weblate.org/projects/spinaldoc-rtd/spinalhdllibrariesstream/zh_Hans/ --- .../LC_MESSAGES/SpinalHDL/Libraries/stream.po | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po index 70f7ffb7af5..748d9bea98b 100644 --- a/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po +++ b/source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Libraries/stream.po @@ -1,25 +1,25 @@ - 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 Language:zh_CNLanguage-Team:zh_CN " -"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 " -"Language-Team:LANGUAGE 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 " +"Language:zh_CNLanguage-Team:zh_CN 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 Language-Team:LANGUAGE MIME-Version:1.0Content-Type:text/plain; " +"charset=UTF-8\n" "POT-Creation-Date: 2024-06-14 13:17+0000\n" -"PO-Revision-Date: 2024-06-14 01:51+0000\n" +"PO-Revision-Date: 2024-06-15 00:17+0000\n" "Last-Translator: Readon \n" +"Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" -"Language-Team: Chinese (Simplified) \n" -"Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 5.6-dev\n" "Generated-By: Babel 2.15.0\n" #: ../../SpinalHDL/Libraries/stream.rst:7 @@ -418,19 +418,16 @@ msgstr "修改 `x` 流的有效载荷,同时保留 `valid` 和 `ready` 信号" #: ../../SpinalHDL/Libraries/stream.rst:173 #: ../../SpinalHDL/Libraries/stream.rst:178 -#, fuzzy msgid "Stream[T2]" -msgstr "Stream[T]" +msgstr "Stream[T2]" #: ../../SpinalHDL/Libraries/stream.rst:175 -#, fuzzy msgid "x.map(translate: (T) => T2)" -msgstr "x.translateBy(drive: (T) => T2)" +msgstr "x.map(translate: (T) => T2)" #: ../../SpinalHDL/Libraries/stream.rst -#, fuzzy msgid "Return a Stream with payload calculated by translate function" -msgstr "返回包含 `drive` 函数计算的有效载荷的流" +msgstr "返回一个流,其有效载荷由 `translate` 函数计算" #: ../../SpinalHDL/Libraries/stream.rst:182 msgid "The following code will create this logic :" @@ -943,4 +940,3 @@ msgstr "通常用于比较参考/dut数据" #~ " preserving the `valid` and `ready` " #~ "signals" #~ msgstr "修改 `x` 流的有效载荷为 `drive` 函数返回值,同时保留 `valid` 和 `ready` 信号" -