zoukankan      html  css  js  c++  java
  • always@*的含义以及优点

    Verilog-2001 added the much-heralded @* combinational sensitivity list token. Although the

    combinational sensitivy list could be written using any of the following styles:
    always @*
    always @(*)
    always @( * )

    always @ ( * )

    or any other combination of the characters @ ( * ) with or without white space, the author prefers the first
    and most abbreviated style. To the author, "always @*" clearly denotes that a combinational block of logic
    follows.
    The Verilog-2001 "always @*" coding style has a number of important advantages over the more
    cumbersome Verilog-1995 combinational sensitivity list coding style:

    ·  Reduces coding errors - the code informs the simulator that the intended implementation is
    combinational logic, so the simulator will automatically add and remove signals from the sensitivity
    list as RTL code is added or deleted from the combinational always block. The RTL coder is no longer
    burdened with manually insuring that all of the necessary signals are present in the sensitivity list. This
    will reduce coding errors that do not show up until a synthesis tool or linting tool reports errors in the
    sensitivity list. The basic intent of this enhancement is to inform the simulator, "if the synthesis tool
    wants the signals, so do we!"
    ·  Abbreviated syntax - large combinational blocks often meant multiple lines of redundant signal
    naming in a sensitivity list. The redundancy served no appreciable purpose and users will gladly adopt
    the more concise and abbreviated @* syntax.
    ·  Clear intent - an always @* procedural block informs the code-reviewer that this block is intended to
    behave like, and synthesize to, combinational logic.

  • 相关阅读:
    《高级软件测试》web测试实践--12月30日记录
    JUnit单元测试遇到的问题及解决思路
    静态代码检查报告
    召开小组评审会
    小组评审会前准备
    软工1701班06组白盒测试实践任务分配
    《高级软件测试》11.30.学习编写自动化测试脚本
    《高级软件测试》11.29.学习编写自动化测试脚本
    新博客
    Java中的NIO学习(一、缓冲区与Buffer)
  • 原文地址:https://www.cnblogs.com/youngforever/p/3104650.html
Copyright © 2011-2022 走看看