数字逻辑设计及应用:chap7 Sequential Logic Design Principles.ppt

数字逻辑设计及应用:chap7 Sequential Logic Design Principles.ppt

  1. 1、本文档共118页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Equivalent states pairs: S5—S4 S6—S2 S7—S3 S8—S1 The minimal state/output table Sequence detector design S* AB Z 00 01 11 10 S0 S1 S1 S2 S2 0 S1 S3 S3 S2 S2 0 S2 S1 S1 S4 S4 0 S3 S3 S3 S4 S2 1 S4 S1 S3 S4 S4 1 S The minimal state diagram Sequence detector design Use decomposed assignment, output is Q2; State assignment Sequence detector design Transition list and minimization Transition list and minimization (minimal cost) LA LB LC RA RB RC input:L (turn left)、R (turn right)、H (emergency- flasher)、CLOCK output:six lights (LC,LB,LA,RA,RB,RC) Turn left Turn right Hazard Examples : T-bird tail lights control Step 1: set up enough state with different meaning ; State name state meaning IDLE all lights are off ; L1 one left light is on; L2 two left lights are on; L3 three left lights are on; R1 one rignt light is on; R2 two right lights are on; R3 three right lights are on; LR3 all lights are on ; Examples : T-bird tail lights control Step 2-3: from state diagram to the transition list Examples : T-bird tail lights control Step 4: from the transition list to the transition table Examples : T-bird tail lights control Step 5: get the excite equations for D flip-flop Examples : T-bird tail lights control Output table (Moore machine) Examples : T-bird tail lights control Register design module latch (d,c,q); input d,c; output q; assign q = (c ? d:q); endmodule Always block and Variable … reg[7:0] f ; … always @ (posedge clk) begin variable assignment; end Variable: must be reg , assigned in always block ! Variable: Operational result , must be reg , may be stored in register, assigned in always block. Nonblocking assignment: sequential design f = x y; Blocking assignment: combinational design f = x y; Always block and Variable Register design module

文档评论(0)

学习让人进步 + 关注
实名认证
内容提供者

活到老,学到老!知识无价!

1亿VIP精品文档

相关文档