版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026江西赣州市第三人民医院招募第一批青年见习46人备考题库及完整答案详解一套
- 2025-2030中国真空压缩袋行业发展分析及发展趋势研究报告
- 2026黑龙江五大连池风景区社会经济调查和价格认证中心招聘公益性岗位4人备考题库及答案详解(典优)
- 2026辽宁大连工业大学招聘非事业编制工作人员3人备考题库含答案详解(典型题)
- 2026江西事业单位联考景德镇市选聘3人备考题库附参考答案详解(达标题)
- 2026江西省省直事业单位招聘1346人备考题库带答案详解(培优a卷)
- 2026湖北恩施供销好农友现代农业有限公司市场营销部人员招聘备考题库附答案详解(轻巧夺冠)
- 数字化教学平台下教师数字素养提升的路径优化与效果评价教学研究课题报告
- 2026黑龙江哈尔滨工业大学商学院招聘备考题库含答案详解(培优b卷)
- 2025-2030新能源汽车推广分析及行业趋势与销售管理策略研究报告
- T/CGCC 93-2024文化产品产权价值评估通则
- 临床用药解读-消化系统常见疾病的诊疗进展及处方审核要点
- 高中数学北师大版讲义(必修二)第05讲1.5正弦函数、余弦函数的图象与性质再认识3种常见考法归类(学生版+解析)
- 2025年物料提升机司机(建筑特殊工种)模拟考试100题及答案
- 劳动合同法全文(2024年版)
- 人教板七年级至九年级英语单词表
- 海关特殊监管区域专题政策法规汇编 2025
- 《胆囊结石伴胆囊炎》课件
- 《浙江省城市体检工作技术导则(试行)》
- 人教统编版(部编版)小学科学教材目录
- 青少年无人机课程:第一课-马上起飞
评论
0/150
提交评论