IEEE Std 1364™-2001, IEEE Standard Verilog® Hardware Description Language

The assign procedural continuous assignment statement shall override all procedural assignments to a variable. The deassign procedural statement shall end a procedural continuous assignment to a variable. The value of the variable shall remain the same until the reg is assigned a new value through a procedural assignment or a procedural continuous assignment. The assign and deassign procedural statements allow, for example, modeling of asynchronous clear/preset on a D-type edge-triggered flip-flop, where the clock is inhibited when the clear or preset is active.

If the keyword assign is applied to a variable for which there is already a procedural continuous assignment, then this new procedural continuous assignment shall deassign the variable before making the new procedural continuous assignment.

Example:

The following example shows a use of the assign and deassign procedural statements in a behavioral description of a D-type flip-flop with preset and clear inputs.

module dff (q, d, clear, preset, clock);
output q;
input d, clear, preset, clock;
reg q;
always @(clear or preset)
if (!clear)
assign q = ;
else if (!preset)
assign q = ;
else
deassign q;
always @(posedge clock)
q = d;
endmodule

If either clear or preset is low, then the output q will be held continuously to the appropriate constant value and a positive edge on the clock will not affect q.When both the clear and preset are high, then q is deassigned.

最新文章

  1. iOS获取iPhone系统等信息和服务器返回空的异常处理
  2. freeswitch
  3. 多线程&NSObject&NSThread&NSOperation&GCD
  4. 精妙无比 8款HTML5动画实例及源码
  5. SQL server基本操作(一)
  6. java中List的排序功能的实现
  7. 转:hadoop知识整理
  8. 使用jquery-mockjax模拟ajax请求做前台測试
  9. Markdown公式编辑
  10. matplotlib坐标轴刻度-【老鱼学matplotlib】
  11. centos 7 挂载U盘
  12. spring的历史和设计科学
  13. Linux安装Broadcom无线驱动
  14. SDE注册版本失败,仅支持一个空间列
  15. Laravel 程序架构设计思路:使用动作类
  16. python stat获取文件信息
  17. linux下svn操作(专)
  18. (function($){})(jQuery)---Javascript的神级特性:闭包
  19. js判断是否是移动端(触摸屏)或者是PC
  20. 不得不服!Python速度虽然慢,但是它工作效率很高!

热门文章

  1. VS2014:"64位调试操作花费的时间比预期要长",无法运行调试解决办法
  2. python 100day notes(2)
  3. PIL库,图像处理第三方库
  4. 2的N次方求解-----C++
  5. 【网络是怎么连接的】一、浏览器与HTTP协议
  6. Oracle 表空间详解
  7. EmWin 如何显示汉字 不用在文件中使用编码
  8. 百度之星资格赛2018B题-子串查询
  9. TP5截取部分字符串
  10. Vue 单页应用 的 首屏优化