电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

Appendix-CVIP免费

Appendix-C_第1页
1/12
Appendix-C_第2页
2/12
Appendix-C_第3页
3/12
Appendix C: Tutorial on theUse of Verilog HDL to Simulatea Finite-State Machine DesignC.1INTRODUCTIONThis appendix quickly describes an FSM model in Verilog code and then simulates it usingSynaptiCAD’s VeriLogger Extreme simulator. The code for the model, VeriLogger Extreme,and the code for most of the examples in the book are contained on the CDROM provided withthe book.A more detailed account of the Verilog HDL is provided in Chapters 6–8, where the languageis developed at a slower and more defined pace.C.2THE SINGLE PULSE WITH MEMORY SYNCHRONOUS FINITE-STATEMACHINE DESIGN: USING VERILOG HDL TO SIMULATEThe design of a single-pulse generator with memory is outlined and then a Verilog HDL file iscreated. This Verilog file will use the most basic of the Verilog methods so as to keep it simple.C.2.1SpecificationWhenever input s is asserted high, a single pulse is to be generated at the output P. Signal s mustbe returned low and then reasserted high again before another pulse can be generated. Inaddition, a memory output L is to go high to indicate that a pulse has been generated; goinglow again when the s input is returned to logic 0.C.2.2Block DiagramFigure C.1 illustrates the block diagram of the system.FSM-based Digital Design using Verilog HDL Peter Minns and Ian Elliott# 2008 John Wiley & Sons, Ltd. ISBN: 978-0-470-06070-4C.2.3State DiagramA state diagram is implemented as illustrated in Figure C.2.C.2.4Equations from the State DiagramThe equations can be derived directly from the state diagram of Figure C.2, in this case usingD-type flip-flops:A � d ¼ s0 � s þ s1¼ =A=B � s þ A=B¼ =B � s þ A=BB � d ¼ s1 þ s2 þ s3 � s¼ A=B þ AB þ =AB � s¼ A þ B � s:The output ...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

您可能关注的文档

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部