返回介绍

附录A 形式语法

发布于 2020-09-09 22:56:05 字数 2617 浏览 919 评论 0 收藏 0

The formal syntax of SystemVerilog is described using Backus-Naur Form (BNF). The conventions used are:

  • Keywords and punctuation are in bold text.
  • Syntactic categories are named in non-bold text.
  • A vertical bar (|) separates alternatives.
  • Square brackets ([]) enclose optional items.
  • Braces ({}) enclose items which can be repeated zero or more times.
The full syntax and semantics of Verilog and SystemVerilog are not described solely using BNF. The normative text description contained within the chapters of the IEEE 1364-2001 Verilog standard and this SystemVerilog document provide additional details on the syntax and semantics described in this BNF.

主题
主题描述
A.1 源文本
A.2 声明
A.3 Primitive instances
A.4 Module, interface and generated instantiation
A.5 UDP declaration and instantiation
A.6 Behavioral statements
A.7 Specify section
A.8 Expressions
A.9 General
A.10 Footnotes (normative)
  1. Embedded spaces are illegal.
  2. A simple_identifier, c_identifier, and arrayed_reference shall start with an alpha or underscore ( _ ) character, shall have at least one character, and shall not have any spaces.
  3. The $ character in a system_tf_identifier shall not be followed by white_space. A system_tf_identifier shall not be escaped.
  4. End of file.
  5. The unsigned number or fixed point number in time_literal shall not be followed by a white_space.
  6. implicit_class_handle shall only appear within the scope of a class_declaration or out-of-block method declaration.
  7. In any one declaration, only one of protected or local is allowed, only one of rand or... more
链接 主题

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文