版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
觸發(fā)器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)
復(fù)習(xí)NANDLatch3ZDMC–Lec.#8復(fù)習(xí)SettingtheLatch(FF)PulsingtheSETinputtothe0statewhen(a)Q=0priortoSETpulse;(b)Q=1priortoSETpulse.Notethat,inbothcases,QendsupHIGH.4ZDMC–Lec.#8復(fù)習(xí)ResettingtheLatch(FF)PulsingtheRESETinputtotheLOWstatewhen(a)Q=0priortoRESETpulse;(b)Q=1priortoRESETpulse.Ineachcase,QendsupLOW.5ZDMC–Lec.#8復(fù)習(xí)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復(fù)習(xí)11ZDMC–Lec.#8clockR'andS'changingstablechangingstablestableClocks(cont’d)ControllinganR-SlatchwithaclockCan'tletRandSchangewhileclockisactive(allowingRandStopass)OnlyhavehalfofclockperiodforsignalchangestopropagateSignalsmustbestablefortheotherhalfofclockperiodclock'S'Q'QR'RS復(fù)習(xí)12ZDMC–Lec.#8Master-SlaveStructureBreakflowbyalternatingclocks(likeanair-lock)UsepositiveclocktolatchinputsintooneR-SlatchUsenegativeclocktochangeoutputswithanotherR-SlatchViewpairasonebasicunitmaster-slaveflip-floptwiceasmuchlogicoutputchangesafewgatedelaysafterthefallingedgeofclockbutdoesnotaffectanycascadedflip-flopsmasterstageslavestagePP'CLKRSQQ'RSQQ'RS復(fù)習(xí)13ZDMC–Lec.#810gatesDFlip-FlopMakeSandRcomplementsofeachotherEliminates1scatchingproblemCan'tjustholdpreviousvalue(musthavenewvaluereadyeveryclockperiod)ValueofDjustbeforeclockgoeslowiswhatisstoredinflip-flopCanmakeR-Sflip-flopbyaddinglogictomakeD=S+R'QDQQ'masterstageslavestagePP'CLKRSQQ'RSQQ'復(fù)習(xí)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本講內(nèi)容邊沿觸發(fā)器時(shí)序的基本概念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觸發(fā)器Flip-Flop分類邏輯功能分類RS鎖存器JK觸發(fā)器T觸發(fā)器D觸發(fā)器邏輯功能指按觸發(fā)器的次態(tài)和現(xiàn)態(tài)及輸入信號(hào)之間的邏輯關(guān)系.特性表特性方程狀態(tài)轉(zhuǎn)換圖32ZDMC–Lec.#8RS鎖存器特性方程Qn+1=S+R’QnRSLatch的狀態(tài)轉(zhuǎn)換圖特性表/真值表01S=1,R=0S=0,R=1S=X,R=0S=0,R=XSRQnQn+1000000110100
01101001101111001110保持復(fù)位置位不定33ZDMC–Lec.#8JK觸發(fā)器特性方程:Qn+1=JQn’+K’QnJKFF的狀態(tài)轉(zhuǎn)換圖特性表/真值表01J=1,K=XJ=X,K=1J=X,K=0J=0,K=XJKQnQn+1000
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年石油化工產(chǎn)品購(gòu)銷合同6篇
- 二零二五年度汽車報(bào)廢車輛運(yùn)輸合同3篇
- 二零二五年度環(huán)保節(jié)能型建筑材料安裝與檢測(cè)合同范本2篇
- 二零二五版海運(yùn)出口運(yùn)輸代理合同貨物跟蹤協(xié)議3篇
- 二零二五版網(wǎng)絡(luò)安全項(xiàng)目反擔(dān)保合同規(guī)定3篇
- 二零二五版二手房買賣合同貸款流程解析3篇
- 二零二五年數(shù)字電影后期制作聘用合同2篇
- 2025年度國(guó)際承包工程合同安全責(zé)任及防護(hù)措施規(guī)定3篇
- 二零二五版工業(yè)園區(qū)消防安全管理綜合服務(wù)合同3篇
- 二零二五版建筑工地勞務(wù)人員臨時(shí)住宿及伙食合同3篇
- 2025寒假散學(xué)典禮(休業(yè)式)上校長(zhǎng)精彩講話:以董宇輝的創(chuàng)新、羅振宇的堅(jiān)持、馬龍的熱愛(ài)啟迪未來(lái)
- 安徽省示范高中2024-2025學(xué)年高一(上)期末綜合測(cè)試物理試卷(含答案)
- 安徽省合肥市包河區(qū)2023-2024學(xué)年九年級(jí)上學(xué)期期末化學(xué)試題
- 《酸堿罐區(qū)設(shè)計(jì)規(guī)范》編制說(shuō)明
- PMC主管年終總結(jié)報(bào)告
- 售樓部保安管理培訓(xùn)
- 倉(cāng)儲(chǔ)培訓(xùn)課件模板
- 2025屆高考地理一輪復(fù)習(xí)第七講水循環(huán)與洋流自主練含解析
- GB/T 44914-2024和田玉分級(jí)
- 2024年度企業(yè)入駐跨境電商孵化基地合作協(xié)議3篇
- 《形勢(shì)與政策》課程標(biāo)準(zhǔn)
評(píng)論
0/150
提交評(píng)論