版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
触发器Flip-Flops
2ZDMC–Lec.#8RSQQ'RSQR'S'QQQ'S'R'MemorywithCross-coupledGatesCross-coupledNORgatesSimilartoinverterpair,withcapabilitytoforceoutputto0(reset=1)or1(set=1)
Cross-coupledNANDgatesSimilartoinverterpair,withcapabilitytoforceoutputto0(reset=0)or1(set=0)
复习NANDLatch3ZDMC–Lec.#8复习SettingtheLatch(FF)PulsingtheSETinputtothe0statewhen(a)Q=0priortoSETpulse;(b)Q=1priortoSETpulse.Notethat,inbothcases,QendsupHIGH.4ZDMC–Lec.#8复习ResettingtheLatch(FF)PulsingtheRESETinputtotheLOWstatewhen(a)Q=0priortoRESETpulse;(b)Q=1priortoRESETpulse.Ineachcase,QendsupLOW.5ZDMC–Lec.#8复习SummaryofNADNLatch(a)NANDlatch;(b)functiontable.6ZDMC–Lec.#8AlternateRepresentations(a)NANDlatchequivalentrepresentation;(b)simplifiedblocksymbol.7ZDMC–Lec.#8NORGateLatch(a)NORgatelatch(b)functiontable(c)simplifiedblocksymbol8ZDMC–Lec.#8Analyzeanddescribetheoperationofthecircuit9ZDMC–Lec.#810ZDMC–Lec.#8ObservedR-SLatchBehaviorVerydifficulttoobserveR-Slatchinthe1-1stateOneofRorSusuallychangesfirstAmbiguouslyreturnstostate0-1or1-0Aso-called"racecondition"Ornon-deterministictransitionSR=00SR=00QQ'
01QQ'
10QQ'
00SR=10SR=01SR=00SR=10SR=00SR=01SR=11SR=11SR=01SR=10SR=11复习11ZDMC–Lec.#8clockR'andS'changingstablechangingstablestableClocks(cont’d)ControllinganR-SlatchwithaclockCan'tletRandSchangewhileclockisactive(allowingRandStopass)OnlyhavehalfofclockperiodforsignalchangestopropagateSignalsmustbestablefortheotherhalfofclockperiodclock'S'Q'QR'RS复习12ZDMC–Lec.#8Master-SlaveStructureBreakflowbyalternatingclocks(likeanair-lock)UsepositiveclocktolatchinputsintooneR-SlatchUsenegativeclocktochangeoutputswithanotherR-SlatchViewpairasonebasicunitmaster-slaveflip-floptwiceasmuchlogicoutputchangesafewgatedelaysafterthefallingedgeofclockbutdoesnotaffectanycascadedflip-flopsmasterstageslavestagePP'CLKRSQQ'RSQQ'RS复习13ZDMC–Lec.#810gatesDFlip-FlopMakeSandRcomplementsofeachotherEliminates1scatchingproblemCan'tjustholdpreviousvalue(musthavenewvaluereadyeveryclockperiod)ValueofDjustbeforeclockgoeslowiswhatisstoredinflip-flopCanmakeR-Sflip-flopbyaddinglogictomakeD=S+R'QDQQ'masterstageslavestagePP'CLKRSQQ'RSQQ'复习14ZDMC–Lec.#7Set1s
catchSRCLKPP'QQ'ResetMaster
OutputsSlave
OutputsThe1sCatchingProblemInfirstR-Sstageofmaster-slaveFF0-1-0glitchonRorSwhileclockishigh"caught"bymasterstageLeadstoconstraintsonlogictobehazard-freemasterstageslavestagePP'CLKRSQQ'RSQQ'RS15ZDMC–Lec.#8QDClk=1RS0D’0D’DQ’negativeedge-triggeredD
flip-flop(D-FF)4-5gatedelaysmustrespectsetupandholdtime
constraintstosuccessfully
captureinputcharacteristicequation
Q(t+1)=DholdsD'whenclockgoeslowholdsDwhen
clockgoeslowEdge-TriggeredFlip-FlopsMoreefficientsolution:only6gatessensitivetoinputsonlynearedgeofclocksignal(notwhilehigh)16ZDMC–Lec.#8QDClk=0RSDD’D’D’Dwhenclockgoeshigh-to-lowdataislatchedwhenclockislowdataisheldEdge-TriggeredFlip-Flops(cont’d)Step-by-stepanalysisQnewDClk=0RSDD’D’D’DnewD
oldD17ZDMC–Lec.#8QDClk=1RSDD’D’D’DEdge-TriggeredFlip-Flops(cont’d)D=0,ClkHigh01000011HoldstateActasinverters18ZDMC–Lec.#80QDClk=1RSDD’D’D’DEdge-TriggeredFlip-Flops(cont’d)D=1,ClkHigh01000®
10®
101101®
01®
019ZDMC–Lec.#80100QDClk=0RSDD’D’D’DEdge-TriggeredFlip-Flops(cont’d)D=1,ClkLOW0®
11®
00010010®
1Actasinverters20ZDMC–Lec.#8positiveedge-triggeredFFnegativeedge-triggeredFFDCLKQposQpos'QnegQneg'100Edge-TriggeredFlip-Flops(cont’d)Positiveedge-triggeredInputssampledonrisingedge;outputschangeafterrisingedgeNegativeedge-triggeredflip-flopsInputssampledonfallingedge;outputschangeafterfallingedge21ZDMC–Lec.#8NegativeEdgeTriggerFFinVerilogmoduled_ff(q,q_bar,data,clk);inputdata,clk;outputq,q_bar;regq;assignq_bar=~q;always@(negedgeclk)beginq<=data;endendmodule22ZDMC–Lec.#8behavioristhesameunlessinputchangeswhiletheclockishighD QCLKpositive
edge-triggered
flip-flopD QGCLKtransparent
(level-sensitive)
latchDCLKQedgeQlatchComparisonofLatchesandFlip-Flops23ZDMC–Lec.#8Type
Wheninputsaresampled
Whenoutputisvalidunclocked always propagationdelayfrominputchange
latch level-sensitive clockhigh propagationdelayfrominputchange
latch (Tsu/Tharoundfalling orclockedge(whicheverislater)
edgeofclock)master-slave clockhigh propagationdelayfromfallingedge
flip-flop (Tsu/Tharoundfalling ofclock
edgeofclock)negative clockhi-to-lotransition propagationdelayfromfallingedge
edge-triggered (Tsu/Tharoundfalling ofclock
flip-flop edgeofclock)ComparisonofLatchesandFlip-Flops(cont’d)24ZDMC–Lec.#8本讲内容边沿触发器时序的基本概念Flip-Flop分类25ZDMC–Lec.#8TimingMethodologiesRulesforinterconnectingcomponentsandclocksGuaranteeproperoperationofsystemwhenstrictlyfollowedApproachdependsonbuildingblocksusedformemoryelementsFocusonsystemswithedge-triggeredflip-flopsFoundinprogrammablelogicdevicesManycustomintegratedcircuitsfocusonlevel-sensitivelatchesBasicrulesforcorrecttiming:(1)Correctinputs,withrespecttotime,areprovidedtotheflip-flops(2)Noflip-flopchangesstatemorethanonceperclockingevent26ZDMC–Lec.#8thereisatiming"window"
aroundtheclockingevent
duringwhichtheinputmust
remainstableandunchanged
inordertoberecognizedclockdatachangingstableinputclockTsuThclockdataDQDQTimingMethodologies(cont’d)Definitionoftermsclock:periodicevent,causesstateofmemoryelementtochange;canberisingorfallingedge,orhighorlowlevelsetuptime:minimumtimebeforetheclockingeventbywhichtheinputmustbestable(Tsu)holdtime:minimumtimeaftertheclockingeventuntilwhichtheinputmustremainstable(Th)27ZDMC–Lec.#8allmeasurementsaremadefromtheclockingeventthatis,
therisingedgeoftheclockTypicalTimingSpecificationsPositiveedge-triggeredDflip-flopSetupandholdtimesMinimumclockwidthPropagationdelays(lowtohigh,hightolow,maxandtypical)Th
5nsTw25nsTplh
25ns
13nsTphl
40ns
25nsTsu
20nsDCLKQTsu
20nsTh
5ns28ZDMC–Lec.#8INQ0Q1CLK100CascadingEdge-triggeredFlip-FlopsShiftregisterNewvaluegoesintofirststageWhilepreviousvalueoffirststagegoesintosecondstageConsidersetup/hold/propagationdelays(propmustbe>hold)CLKINQ0Q1DQDQOUT29ZDMC–Lec.#8timingconstraintsguaranteeproperoperationofcascadedcomponentsassumesinfinitelyfast
distributionoftheclockCascadingEdge-triggeredFlip-Flops(cont’d)WhythisworksPropagationdelaysexceedholdtimesClockwidthconstraintexceedssetuptimeThisguaranteesfollowingstagewilllatchcurrentvaluebeforeitchangestonewvalueTsu4nsTp3nsTh2nsInQ0Q1CLKTsu4nsTp3nsTh2ns30ZDMC–Lec.#8originalstate:IN=0,Q0=1,Q1=1duetoskew,nextstatebecomes:Q0=0,Q1=0,andnotQ0=0,Q1=1CLK1isadelayedversionofCLK0InQ0Q1CLK0CLK1100ClockSkewTheproblemCorrectbehaviorassumesnextstateofallstorageelements
determinedbyallstorageelementsatthesametimeDifficultinhigh-performancesystemsbecausetimeforclocktoarriveatflip-flopiscomparabletodelaysthroughlogic(andwillsoonbecomegreaterthanlogicdelay)Effectofskewoncascadedflip-flops:31ZDMC–Lec.#8触发器Flip-Flop分类逻辑功能分类RS锁存器JK触发器T触发器D触发器逻辑功能指按触发器的次态和现态及输入信号之间的逻辑关系.特性表特性方程状态转换图32ZDMC–Lec.#8RS锁存器特性方程Qn+1=S+R’QnRSLatch的状态转换图特性表/真值表01S=1,R=0S=0,R=1S=X,R=0S=0,R=XSRQnQn+1000000110100
01101001101111001110保持复位置位不定33ZDMC–Lec.#8JK触发器特性方程:Qn+1=JQn’+K’QnJKFF的状态转换图特性表/真值表01J=1,K=XJ=X,K=1J=X,K=0J=0,K=XJKQnQn+1000
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年秋季初中新生军训 军训中的感恩教育
- 2026年电子商务行业新模式与新业态发展报告
- 2027年云南林业职院高职单招职业技能考试模拟试卷带答案详解(培优A卷)
- 2024年龙湖智造职业学院高职单招职业技能考试题库附参考答案详解(预热题)
- 2024年巴盛职业学院高职单招职业技能考试题库及答案详解(真题汇编)
- 2025年柘林湖职业学院单招职业技能考试模拟试卷含答案详解(综合卷)
- 2026年菏泽家政职业学院高职单招职业适应性测试考试题库含答案详解【预热题】
- 2024年江西外语外贸职业学院单招综合素质考试题库及答案详解(典优)
- 2026年武当山文旅职业学院高职单招职业适应性测试考试题库1套附答案详解
- 2025年长沙黑麋峰职业学院单招综合素质考试模拟试卷(模拟题)附答案详解
- 2025-2030商业航天产业发展政策环境与市场增长空间报告
- 乙醇(酒精)化学品安全技术说明书(MSDS-SDS)
- 2026年高速公路监控考试题库及答案
- 初中九年级物理上册期中考试题及答案【完整版】
- 企业年度评优与表彰管理办法
- 高处作业人员安全教育培训
- 初中历史材料分析题答题技巧
- 输液安全警示教育
- 学院学生宿舍管理服务项目方案投标文件(技术方案)
- 2026青岛东鼎产业发展集团有限公司招聘笔试备考题库及答案解析
- 社会组织内部薪酬制度
评论
0/150
提交评论