第一范文网 - 专业文章范例文档资料分享平台

电子电路 L8- Sequential Circuit Design with Verilog(1) - 图文 

来源:用户分享 时间:2025/6/18 10:18:05 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

The Edge Triggered T Flip-Flop?Assign characteristic function to Q on rising clock edge (Q+= T XOR Q)module Tflipflop(T, Clock, Q);input T, Clock;output Q;regQ;always @(posedgeClock)Q = T ^ Q; // Q = T XOR QendmoduleFebruary 15, 2012ECE 152A -Digital Design Principles11The Edge Triggered T Flip-Flop?Functional SimulationholdtoggleholdtoggletoggleholdFebruary 15, 2012ECE 152A -Digital Design Principles12Blocking and Non-Blocking Assignments?Q = D?Equal sign (=) signifies a blocking assignment?Statements are evaluated in the order in which they are written?If a variable is given a value by a blocking assignment, the new value is used in evaluating all subsequent statements in the blockFebruary 15, 2012ECE 152A -Digital Design Principles13Blocking and Non-Blocking Assignments?Blocking Assignment Statement Examplemodule example1(D, Clock, Q1, Q2);input D, Clock;output Q1, Q2;regQ1, Q2;always @(posedgeClock)beginQ1 = D;Q2 = Q1;endendmoduleFebruary 15, 2012ECE 152A -Digital Design Principles14Blocking and Non-Blocking Assignments?Example synthesizes two positive edge triggered D flip-flops?Both flip-flops triggered by same clock edge?Both assignments in always block are blocking??Q1 gets the value DQ2 then gets the new value of Q1?Q1+, which is now DFebruary 15, 2012ECE 152A -Digital Design Principles15

搜索更多关于: 电子电路 L8- Sequential Circuit De 的文档
电子电路 L8- Sequential Circuit Design with Verilog(1) - 图文 .doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c8upcy9jzjx5uqa87qzsz8c83h0epna0167s_3.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top