资源描述:
《2_RISC_CISC.ppt》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、StateMachinesTimingComputerBusComputerPerformanceInstructionSetArchitecturesRISC/CISCMachinesCombinationalvs.SequentialLogicTherearetwotypesof“combination”locks418430155102025Combinational:Successdependsonlyonthevalues,nottheorderinwhichtheyareset.Sequential:Successdependsonthes
2、equenceofvalues(e.g,R-13,L-22,R-3).AComputerisanexampleofaSequentialCircuitInformationStorage:DFlipFlop(DLatch)D
3、Qn+10
4、01
5、1RegisterAregisterstoresamulti-bit(vector)value.WeuseacollectionofD-latches,allcontrolledbyacommonwriteenablepulse,callitWE.WhenthewriteenableWE=1,then-bitval
6、ueDiswrittentoregister.TimingDiagramConventionsBacktoourSequentialLogicThisone.418430155102025Combinational:Successdependsonlyonthevalues,nottheorderinwhichtheyareset.Sequential:Successdependsonthesequenceofvalues(e.g,R-13,L-22,R-3).AFiniteStateMachineCombinationallogicDetermine
7、outputsateachstate.Determinenextstate.StorageelementsMaintainstaterepresentation.StateMachineCombinationalLogicCircuitStorageElementsInputsOutputsClockTheClockFrequently,aclockcircuittriggerstransitionfromonestatetothenext.Atthebeginningofeachclockcycle,thestatemachinemakesatransi
8、tion,basedonthecurrentstateandtheexternalinputs(Synchronous).Notalwaysrequired.Inlockexample,theinputitselftriggersatransition(Asynchronous).“1”“0”timeOneCycleStateThestateofasystemisasnapshotofalltherelevantelementsofthesystematthemomentthesnapshotistaken.FiniteStateMachineAdescr
9、iptionofasystemwiththefollowingcomponents:AfinitenumberofstatesAfinitenumberofexternalinputsAfinitenumberofexternaloutputsAnexplicitspecificationofallstatetransitionsAnexplicitspecificationofwhatdetermineseachexternaloutputvalueOftendescribedbyastatediagram:-Thesetofallpossiblestat
10、es.-Inputsthattriggerstatetransitions.-Outputsassociatedwitheachstate(orwitheachtransition).StateofSequentialLockOurlockexamplehasfourdifferentstates,labelledA-D:A:Thelockisnotopen,andnorelevantoperationshavebeenperformed.B:Thelockisnotopen,andtheuserhascompletedtheR-13operation.C:
11、Thelockisnotopen,andtheuse