msrgr的个人空间 https://blog.eetop.cn/1233728 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

always@* 使用建议

已有 1246 次阅读| 2017-2-14 11:38 |个人分类:FPGA|系统分类:硬件设计

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.

转载


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 1

    粉丝
  • 0

    好友
  • 1

    获赞
  • 0

    评论
  • 1160

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-6 07:40 , Processed in 0.016837 second(s), 15 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部