




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
觸發(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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 東華大學(xué)《數(shù)字邏輯與微處理器》2023-2024學(xué)年第二學(xué)期期末試卷
- 山東交通職業(yè)學(xué)院《嬰幼兒音樂教育》2023-2024學(xué)年第二學(xué)期期末試卷
- 浙江東方職業(yè)技術(shù)學(xué)院《WEB技術(shù)開發(fā)》2023-2024學(xué)年第二學(xué)期期末試卷
- 長安大學(xué)《體育教育專業(yè)寫作》2023-2024學(xué)年第二學(xué)期期末試卷
- 鄭州美術(shù)學(xué)院《編程開發(fā)》2023-2024學(xué)年第二學(xué)期期末試卷
- 鄭州財(cái)稅金融職業(yè)學(xué)院《海外交流學(xué)習(xí)》2023-2024學(xué)年第二學(xué)期期末試卷
- 漳州輔警考試題庫
- 南昌師范學(xué)院《體育-籃球》2023-2024學(xué)年第一學(xué)期期末試卷
- 挖砂施工方案
- 暗河清理施工方案
- 業(yè)務(wù)跟單流程課件
- 深度學(xué)習(xí)在圖像識(shí)別中的應(yīng)用課件
- 養(yǎng)老護(hù)理ppt課件完整版
- 對(duì)5S管理成果的記錄和展示
- 人工智能在網(wǎng)絡(luò)安全中的應(yīng)用簡介
- JGT541-2017 建筑隔震柔性管道
- 小學(xué)校本課程-三省吾身教學(xué)課件設(shè)計(jì)
- 有限空間作業(yè)管理臺(tái)帳(參考模板)
- 中老年人群中醫(yī)體質(zhì)調(diào)查研究
- 風(fēng)力發(fā)電風(fēng)機(jī)拆除方案
- GA 1814.4-2023鐵路系統(tǒng)反恐怖防范要求第4部分:重點(diǎn)場所
評(píng)論
0/150
提交評(píng)論