同步時(shí)序線路分析和設(shè)計(jì)-1_第1頁
同步時(shí)序線路分析和設(shè)計(jì)-1_第2頁
同步時(shí)序線路分析和設(shè)計(jì)-1_第3頁
同步時(shí)序線路分析和設(shè)計(jì)-1_第4頁
同步時(shí)序線路分析和設(shè)計(jì)-1_第5頁
已閱讀5頁,還剩49頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

AnalysisandSynthesisofSynchronousSequentialCircuitsClassificationofSequentialCircuitsSynchronousSequentialCircuits(同步時(shí)序電路):Allflip-flopsinsystemarecontrolledbyaglobalclocksignal.Thatiswhatwediscussedinthischapter.AsynchronousSequentialCircuits(異步時(shí)序電路):Allflip-flopsarenotdrivenbyoneclocksignalorthereisnoclockpulseinput.Thatis,thetransitionfromonestatetoanotherisinitiatedbythechangeintheprimaryinputs;thereisnoexternalsynchronisation(無外部同步機(jī)制).TwoBasicModelsMealy(米里型):Theoutputisafunctionofpresentstate&presentinputs;Moore(摩爾型):Theoutputcanchangeonlywhenthestatechangesandhavenothingtodowiththeinputs.Outputonlydependsonpresentstates.TwoTypicalApplicationsAnalysis(分析):Withgivencircuit,tellwhatdoesitdo?Design/Synthesis(設(shè)計(jì)/綜合):Givenspecificationofcircuit,developdesigns.SomeImportantConceptsDrivenEquation(ControlEquation,ExcitingEquation)(驅(qū)動(dòng)方程)TheinputofFFs,suchas:J=….;K=….;CharacteristicEquation(特征方程)BelongstooneFF,suchasQn+1=D;StateEquation(狀態(tài)方程)Equationdescribingtherelationshipofpresentstate(現(xiàn)態(tài))&nextstate(次態(tài))SomeImportantConceptsStatetransitiontable(狀態(tài)轉(zhuǎn)移表)Statetransitiondiagram(狀態(tài)轉(zhuǎn)移圖)XPresentStateNextStateYQ1(n)Q0(n)Q1(n+1)Q0(n+1)0000110110110111110011001100100010011111010/1000110110/10/10/11/01/11/11/0AnalysisofSynchronousSequentialCircuitsGivenCircuitsDerivetheOutputEquation&DrivenEquationsGivetheState

Transition

Table/

diagramBuildtheStateTransitionEquationTiming

diagramExplainTheLogicFuncitonExample1(analysis)Step1,GivetheOutputEquation&DrivenEquationsExample1(analysis)Step2,DerivetheStateTransitionEquationExample1(analysis)Step3,Buildthestatetable/diagram

Example1(analysis)Step3,Buildthestatetable/diagram

010/10010110/10/10/01/11/01/11/1Example1(analysis)Step4,Tellthelogicfunction由狀態(tài)圖可知,本例給定的時(shí)序線路也是一個(gè)可逆二進(jìn)制計(jì)數(shù)器。所示電路是一個(gè)摩爾型的同步時(shí)序線路,因?yàn)樵摼€路的狀態(tài)也是由同一個(gè)CP脈沖改變的,但路線的輸出僅取決于現(xiàn)態(tài),而與輸入無直接關(guān)系。010/10010110/10/10/01/11/01/11/1課堂練習(xí)Letusexplorethebehaviorofthecircuitinthisfigurebydevelopingatimingdiagram,statetable,andstatediagram.Thetimingdiagramshouldshowthecircuitresponsetotheinputsequencex=01101000,withthecircuitbeginninginstatey=0.Exercise(analysis)Exercise(analysis)

yx0101/00/011/00/1Yn+1/zStatetableStatediagram0=A1=BExercise(analysis)X=01101000Y=01001011Yn+1=10010111Z=01001000Exercise(analysis)01X=01101000Y=01001011Z=01001000Exercise(analysis)Y的狀態(tài)變化必然發(fā)生在下降沿z則不必Step1:DerivethestatediagramStep2:Simplify(化簡(jiǎn))thestateStep3:Encode(編碼)thestateStep4:DerivetheExcitingK-map(激勵(lì)卡諾圖)Step5:CheckSelf-startupStep6:DrawthecircuitSteps:DesignofSequentialCircuitAcquiretheOriginalStateDiagram(原始狀態(tài)圖)Example1(originalstatediagram)Designan“101”serialdetector(序列檢測(cè)器),givetheoriginalstatediagram(when“101”appears,theoutputZis1,otherwiseZ=0)S0:No“1”;S1:Get“1”;S2:Get“10”;S3:Get“101”;Input: 11010010101101Output: 00010000101001Example1Example2(originalstatediagram)Designan“01”serialdetector(序列檢測(cè)器),givetheoriginalstatediagram(when“01”appears,theoutputZis1,otherwiseZ=0)S0:No“0”;S1:Get“0”;S2:Get“01”;Input: 11010010101101Output: 00010010101001S0S10/00/01/11/0S20/01/0Example2(originalstatediagram)Designan“01”serialdetector(序列檢測(cè)器),givetheoriginalstatediagram(when“01”appears,theoutputZis1,otherwiseZ=0)S0:No“0”;S1:Get“0”;Input: 11010010101101Output: 000100101010010/0S0S10/01/11/0SimplifytheStateTableSimplifytheStateTableGenerallyspeaking,theOriginalStateTablemaynotbethemostreducedone.(someequivalentstatesmayexist)ByReducingthestatetable,wecanassignlessFlip-Flops.PrincipleofSimplificationWecanconsiders1=s2ifinanycase,theoutputofS1&S2bethesameandthenextstatebethesame(次態(tài)相等).Considers1=s2ifinanycase,theoutputofS1&S2bethesameandthenextstatebeinterleaving(次態(tài)交錯(cuò))Considers1=s2ifinanycase,theoutputofS1&S2bethesameandthenextstateloop(次態(tài)循環(huán))ThisisSameStateY\X01AB,0A,0BB,0C,1CB,0A,0ThisisStateLoopY\X01AA,1B,1BB,0C,1CC,1B,1ThisisStateInterleavingY\X01AB,1C,0BB,0C,1CB,1A,0NotEquivalentifoutputnottheSameY\X01AA,1B,1BB,0C,1CA,0B,1JustLookintothetableY\X01AE,0D,0BA,1F,0CC,0A,1DB,0A,0ED,1C,0FC,0D,1JustLookintothetableY\X01AE,0D,0BA,1F,0CC,0A,1DB,0A,0ED,1C,0FC,0D,1隱含表法化簡(jiǎn)原始狀態(tài)表隱含表:直角三角形網(wǎng)格。網(wǎng)格數(shù)為總狀態(tài)數(shù)減1;橫向從左到右依次標(biāo)注1~n-1個(gè)狀態(tài)名,縱向從上到下依次標(biāo)注2~n個(gè)狀態(tài)名。隱含表法化簡(jiǎn)原始狀態(tài)表比較結(jié)果有狀態(tài)對(duì)等效、不等效、不能確定三種。等效時(shí)在相應(yīng)方格填“∨”;不等效時(shí)在相應(yīng)方格填“╳”,不能確定時(shí),將次態(tài)對(duì)填入相應(yīng)方格關(guān)聯(lián)比較,確定等效狀態(tài)對(duì)確定最大等效類,作最小化狀態(tài)表EncodeStates(狀態(tài)編碼)EncodeStatesAssigneverystateintheReducedStateTablewithabinarycodeAssumethatthenumberofstateisN,andthenumberofFlip-FlopisK,theremustbe2K≥N.N=9,K=4N=7,K=3Withdifferentencodingmethod,theremustbedifferentcircuitrealization.PrincipleofEncoding從理論上講,有可能找到一種確定最佳狀態(tài)編碼的算法,然而至今尚未獲得滿意而又實(shí)用的結(jié)果。對(duì)于狀態(tài)表中同一輸入下的相同次態(tài)所對(duì)應(yīng)的現(xiàn)態(tài),應(yīng)給予相鄰編碼。所謂相鄰編碼,就是指各二進(jìn)制代碼中只有一位碼不同。為方便起見,我們把這條規(guī)則簡(jiǎn)稱為“次態(tài)相同,現(xiàn)態(tài)相鄰”對(duì)于狀態(tài)表中同一現(xiàn)態(tài)在不同輸入下的次態(tài),應(yīng)給予相鄰編碼。該規(guī)則可簡(jiǎn)稱為“同一現(xiàn)態(tài),次態(tài)相鄰”對(duì)狀態(tài)表中輸出完全相同的現(xiàn)態(tài)應(yīng)給予相鄰編碼。該規(guī)則可簡(jiǎn)稱為“輸出相同,現(xiàn)態(tài)相鄰”狀態(tài)表中出現(xiàn)次數(shù)最多的狀態(tài)應(yīng)該分配為邏輯0EncodeStates例略。見后面設(shè)計(jì)的詳細(xì)例子ExcitingK-Map(激勵(lì)卡諾圖)ExcitingK-MapStateassignmentStateTransitiontableUsingfalling-edgetriggeredDFFCombinationalcircuitxzQ/Q/QQDDCCCP??????Targ

溫馨提示

  • 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ì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論