版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1Digital Logic Design and ApplicationLecture #20Chapter 8Sequential Logic Design PracticesUESTC, Spring 20132Chapter 7 Sequential Logic Design PrinciplesCombinational logic circuitOutputs = f ( current inputs )Sequential logic circuitOutputs = f ( current inputs + entire input history )stored in mem
2、ory elementsLatches and Flip-Flopsfeedback sequential circuitclocked synchronous state machineMealy machineMoore machine虽然组合逻辑电路能够很好地处理像加、减等这样的操作,但是要单独使用组合逻辑电路,使操作按照一定的顺序执行,需要串联起许多组合逻辑电路,而要通过硬件实现这种电路代价是很大的,并且灵活性也很差。为了实现一种有效而且灵活的操作序列,需要构造一种能够存储各种操作之间的信息的电路时序电路。时序电路可以提高器件利用效率。3Chapter 7 Sequential Log
3、ic Design PrinciplesClock signal clock period, clock frequency, clock tick, duty cycleBistable ElementsMetastable CharacteristicLatchesS-R Latch, D LatchFlip-Flops, F/FEdge-Triggered flip-flopMaster/Slave flip-flopD FFT FFJ-K FFS-R FF4State-Machine StructureNextState Logic FStateMemoryOutputLogicGin
4、putsoutputsexcitationcurrent stateclocksignalexcitationequationtransitionequationoutputequation5State-Machine AnalysisDetermine excitation equation for flip-flop control inputsDetermine output equation from the circuit diagramSubstitute the excitation equations into the flip-flop characteristic equa
5、tions to obtain transition equationsUse the transition equations and output equations to construct a transition/output tableName the states and obtain a state/output table(Optional) Draw a state diagramDescribe the circuit function6State-Machine DesignConstruct state/output table ( or state diagram
6、)(optional) State minimizationState assignmentCreate transition/output tableDerive transition equations and output equationsChoose a flip-flop type for the state memoryConstruct excitation equationsDraw a logic circuit diagram7State-Machine DesignState table transition table transition equationState
7、 diagram transition list transition equationExcitation equationState assignmentFF chooseK-map, (),()(),()Chapter 7 Sequential Logic Design PrinciplesSeveral important conceptionsBi-stable / LatchMeta-stableenable Synchronous/ AsynchronousFinite stateLogic function89Chapter 8Sequential Logic Design P
8、racticesSSI Latches and Flip-FlopsMSI Device: Counters, Shift RegistersOthers: Documents, Iterative, Failure and Metastability108.1 Sequential-Circuit Documentation StandardsGeneral Requirements ( P680 )Logic SymbolsEdge-Triggered indicator, Master/Slave Output indicatorasynchronous preset (at the T
9、op) and clear (at the bottom) all inputs on the left, all outputs on the rightState-Machine Descriptionword descriptions, state tables, state diagrams, transition listsTiming Diagrams and Specifications ( P682 )11CLOCKflip-flop outputscombinationaloutputsflip-flop inputssetup-time marginhold-time ma
10、rgin理论上,时序电路的速度越快越好,但实际应用中,不是越快越好。建立时间限制了时钟的最高频率;保持时间限制了组合电路的最快传输速度。128.2 Latches and Flip-Flops1. SSI Latches and Flip-Flops132. Switch Debouncing+5VSW_LDSWPushSW_LDSW Pushfirst contactbounceSW_LDSWIdeal Case14SW_LSW0011SW_LSW0011Push0011SW_LSW0011SW_LSW110015SW_LSWDSW说明: 开关悬空后, SW_L会稍大于0电平 可在输出端加一
11、级缓冲解决 QQLS QR Q+5V 开关切换时会出现瞬时短路现象,不应与高速 CMOS器件一起使用 可采用锁存器结构。163. Bus Holder CircuitABCG1G2AG2BY0Y1Y2Y3Y4Y5Y6Y774x138EN1EN2_LEN3_LSRC0SRC1SRC2P0P1P7SDATA174. Multibit Registers and Latches4-bit register74x1751D2D3D4DCLKCLR_L1Q1Q_L2Q2Q_L3Q3Q_L4Q4Q_L188-bit (octal)register74x374 ( 3-state output ) OEou
12、tput enable 1974x377clock enable74x273asynchronous clear74x374output enableother octal registers2074x377(Clock enable)ENEN2-input Multiplexer21Register vs. Latch, whats the difference? register: edge-triggered behavior latch: output follows input when C is asserted Octal LatchOctalregister228.4 Coun
13、tersModulus: the number of states in the cycleA modulo-m counter, or a divide-by-m counterAn n-bit binary counterAny sequential circuit whose state diagram is a single cycle.S1S2S3SmS5S4ENENENENENENENENENENENENEN8.4 Counter a modulo-2 counter 23State assignment: S0: 0 S1: 1S0S1 1-bit counterTransiti
14、on table S S* Z 0 1 0 1 0 101Q0Transition equation: Q0*=Q0Q0* Toggle, T F.FCLKOne T F.F for one bit counter,N-bit counter? use N F.F241. Ripple Counters0 0 0 00 0 0 10 0 1 00 0 1 10 1 0 00 1 0 10 1 1 00 1 1 1 1 0 0 01 0 0 11 0 1 01 0 1 11 1 0 01 1 0 11 1 1 01 1 1 1asynchronous countercounter adderQ3
15、 Q2 Q1 Q0 Toggle Toggle at Q0 Toggle at Q1 Toggle at Q2 In the worst case, the propagation delay of the MSB is ntTQ .252. Synchronous Counters1 0 1 1 0 1 1+ 11 0 1 1 1 0 0在多位二进制数的末位加 1,仅当第 i 位以下的各位都为 1 时,第 i 位的状态才会改变。最低位的状态每次加1都要改变。 Using T flip-flop with enable: Q* = ENQ + ENQ = EN QENi = Qi-1Qi-2
16、Q1Q0EN0 =1Q* = D= EN Q Di = (Qi-1 Q1 Q0) Qi D QEN CLK Q Using D flip-flop with enable D0 = 1 Q0 = Q0EN Q T Q26synchronous 4-bit binary up counter1如何加入使能端? LSB MSB 27synchronous counter with serial enable logicCNTENSerial enable logic28synchronous counter with parallel enable logicCNTEN Parallelenabl
17、e logic 293. A 4-Bit Binary Counter 74x16374x163 Function Table 01111CLKfunction clear load holdhold & RCO=0 count CLR_LLD_LENP ENT0111 0 1 0 1 1It uses D flip-flops internally to facilitate the load and clear functions.With synchronous clear and load inputsP714 Figure 8-28 internal logic diagram fo
18、r the 74x16330CLKENclear and loadQ0Q1Q2Q3D0D1D2D3(Qi-1 Q0) Qi counting32synchronous clear inputLD_LCLR_LCLKQAAcounting functionQi* = (Qi-1 Q1 Q0) Q00000033synchronous load inputLD_LCLR_LCLKQAAcounting functionQi* = (Qi-1 Q1 Q0) Q01102-to-1 MUX34ENP and ENT enable inputsENP ENT ENRCOclear “ripple carry out” signalripple carry outRCO=ENT QD QC QB QA35operate in a free-running modeFree-running 16Count if ENP andENT both asserted.Load if LD is asserted(overrides counting).Clear if CLR is asserted(o
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025安徽淮南四宜建设投资集团有限公司招聘8人笔试历年参考题库附带答案详解
- 2025四川宜宾五粮液股份有限公司录用上半年社会招聘公司办公室工作员笔试历年参考题库附带答案详解
- 2025四川九州电子科技股份有限公司招聘人力资源管理岗测试笔试历年参考题库附带答案详解
- 2026年餐饮业新型业态创新案例分析报告
- 2026年黑色金属矿产业链创新模式研究报告001
- 2025年青岛技师学院高职单招职业技能考试模拟试卷及参考答案详解【研优卷】
- 2026年广西柳州工业职业学院单招职业技能考试模拟试卷含完整答案详解(各地真题)
- 2024年安康技师学院高职单招职业技能考试模拟试卷含完整答案详解(有一套)
- 2025年东营现代化工学院单招综合素质考试模拟试卷附参考答案详解【黄金题型】
- 2026年湖南岳阳临港职业学院单招职业技能考试题库含答案详解(黄金题型)
- 2025年中国药品销售市场分析报告-摩熵咨询
- 道路施工中的风险识别与管理试题及答案
- 八年级语文-课外阅读提高训练(50篇含答案)
- 国有企业投融资风险管理
- 危废协议合同范本
- 2025年中铁集团招聘笔试参考题库含答案解析
- GB 17625.1-2022电磁兼容限值第1部分:谐波电流发射限值(设备每相输入电流≤16 A)
- 天然气公司加气站站长消防治安反恐工作日检表
- 音响功率放大器
- 广东省普通高中学生档案
- 详解全面加强和改进新时代学生心理健康工作专项行动计划(2023-2025年)PPT
评论
0/150
提交评论