always@*的含义以及优点
2013-05-24 19:40
295 查看
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.
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.
相关文章推荐
- always@*的含义以及优点
- ASP.NET代码分离技术的含义以及优点 GetInt32(0)和GetString(3)
- vi的使用(基础到高阶)以及drwxr-xr-x 的含义
- http状态代码以及含义
- android中invalidate()的自动清屏含义以及屏幕刷新
- struts1 中DispatchAction 与action 的区别,以及DispatchAction的用法含义
- 财富500强的前10个公司里有8个公司在使用Qt(Qt自己认为的优点是:直觉主义、跨平台、节省时间),以及一些商业案例
- EJS 是什么 ,怎么用,以及优点
- UITableView中的代理方法的含义以及它的基本属性
- android中invalidate()的自动清屏含义以及屏幕刷新
- 简单了解下OSI七层模型的作用以及常见网络协议含义和所用端口
- asp.net XMLHttpRequest 进度条以及lengthComputable always false的解决办法
- MFGTool的使用以及ucl2.xml的含义
- VS2005和VS2008的区别以及各自优点
- Linux man命令的使用方法(以及后面数字的含义)
- JDBC、Ibatis、Hibernate对比、以及优点缺点
- 事务脚本的缺点以及领域模型的优点
- 关于malloc、free、new、delete以及calloc、realloc基本库函数与运载符的含义
- android中invalidate()的自动清屏含义以及屏幕刷新
- jquery源码初探-jquery写法优点以及事件机制说明