-
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
2a455ec
commit 8b5f9b6
Showing
2 changed files
with
48 additions
and
31 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-12-10 14:23+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" | ||
|
@@ -21,7 +21,7 @@ msgid "Assertions" | |
msgstr "" | ||
|
||
#: ../../SpinalHDL/Other language features/assertion.rst:5 | ||
msgid "In addition to Scala run-time assertions, you can add hardware assertions using the following syntax:" | ||
msgid "In addition to Scala run-time assertions `assert(condition : Boolean, message : String)`, you can add hardware assertions using the following syntax:" | ||
msgstr "" | ||
|
||
#: ../../SpinalHDL/Other language features/assertion.rst:7 | ||
|
@@ -75,3 +75,7 @@ msgstr "" | |
#: ../../SpinalHDL/Other language features/assertion.rst:27 | ||
msgid "One practical example could be to check that the ``valid`` signal of a handshake protocol never drops when ``ready`` is low:" | ||
msgstr "" | ||
|
||
#: ../../SpinalHDL/Other language features/assertion.rst:48 | ||
msgid "Scala run time assertions `assert(condition : Boolean, message : String)` do not provide support for a severity level, and if triggered, will always stop the current elaboration/simulation." | ||
msgstr "" |
71 changes: 42 additions & 29 deletions
71
source/locale/zh_CN/LC_MESSAGES/SpinalHDL/Other language features/assertion.po
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,85 +1,98 @@ | ||
|
||
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" | ||
"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@ADDRESS\n" | ||
"POT-Creation-Date: 2024-12-10 14:23+0000\n" | ||
"PO-Revision-Date: 2023-12-18 07:38+0000\n" | ||
"Last-Translator: Readon <[email protected]>\n" | ||
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/" | ||
"spinaldoc-rtd/spinalhdlother-language-featuresassertion/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/spinalhdlother-language-featuresassertion/zh_Hans/>\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"X-Generator: Weblate 5.3\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.16.0\n" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:3 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:3 language | ||
msgid "Assertions" | ||
msgstr "Assertions" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:5 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:5 language | ||
#, fuzzy | ||
msgid "" | ||
"In addition to Scala run-time assertions, you can add hardware assertions " | ||
"using the following syntax:" | ||
"In addition to Scala run-time assertions `assert(condition : Boolean, " | ||
"message : String)`, you can add hardware assertions using the following " | ||
"syntax:" | ||
msgstr "除了 Scala 运行时断言之外,您还可以使用以下语法添加硬件断言:" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:7 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:7 language | ||
msgid "" | ||
"``assert(assertion : Bool, message : String = null, severity: " | ||
"AssertNodeSeverity = Error)``" | ||
msgstr "" | ||
"``assert(assertion : Bool, message : String = null, severity: " | ||
"AssertNodeSeverity = Error)``" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:9 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:9 language | ||
msgid "Severity levels are:" | ||
msgstr "严重性等级是:" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:15 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:15 language | ||
msgid "Name" | ||
msgstr "名称" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:16 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:16 language | ||
msgid "Description" | ||
msgstr "描述" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:17 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:17 language | ||
msgid "NOTE" | ||
msgstr "NOTE" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:18 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:18 language | ||
msgid "Used to report an informative message" | ||
msgstr "用于报告提示性消息" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:19 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:19 language | ||
msgid "WARNING" | ||
msgstr "WARNING" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:20 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:20 language | ||
msgid "Used to report an unusual case" | ||
msgstr "用于报告异常情况" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:21 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:21 language | ||
msgid "ERROR" | ||
msgstr "ERROR" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:22 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:22 language | ||
msgid "Used to report an situation that should not happen" | ||
msgstr "用于报告不应该发生的情况" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:23 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:23 language | ||
msgid "FAILURE" | ||
msgstr "FAILURE" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:24 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:24 language | ||
msgid "Used to report a fatal situation and close the simulation" | ||
msgstr "用于报告致命情况并关闭仿真" | ||
|
||
#: ../../source/SpinalHDL/Other features/assertion.rst:27 language | ||
#: ../../SpinalHDL/Other features/assertion.rst:27 language | ||
msgid "" | ||
"One practical example could be to check that the ``valid`` signal of a " | ||
"handshake protocol never drops when ``ready`` is low:" | ||
msgstr "一个实际的例子是检查当 ``ready`` 为低电平时,握手协议的 ``valid`` " | ||
"信号不应该由高变低:" | ||
msgstr "一个实际的例子是检查当 ``ready`` 为低电平时,握手协议的 ``valid`` 信号不应该由高变低:" | ||
|
||
#: ../../SpinalHDL/Other features/assertion.rst:48 language | ||
msgid "" | ||
"Scala run time assertions `assert(condition : Boolean, message : String)`" | ||
" do not provide support for a severity level, and if triggered, will " | ||
"always stop the current elaboration/simulation." | ||
msgstr "" | ||
|