資源描述:
《CHAPTER 4 The Components of the System 2. Processor 課件》由會員上傳分享,免費在線閱讀,更多相關內容在教育資源-天天文庫。
1、CHAPTER4TheComponentsoftheSystemUnitProcessorFundamentalConceptsProcessorfetchesoneinstructionatatimeandperformtheoperationspecified.Instructionsarefetchedfromsuccessivememorylocationsuntilabranchorajumpinstructionisencountered.Processorkeepstrackoftheaddressoftheme
2、morylocationcontainingthenextinstructiontobefetchedusingProgramCounter(PC).InstructionRegister(IR)ExecutinganInstructionFetchthecontentsofthememorylocationpointedtobythePC.ThecontentsofthislocationareloadedintotheIR(fetchphase).IR←[[PC]]Assumingthatthememoryisbytead
3、dressable,incrementthecontentsofthePCby4(fetchphase).PC←[PC]+4CarryouttheactionsspecifiedbytheinstructionintheIR(executionphase).InternalorganizationoftheprocessorALURegistersfortemporarystorageVariousdigitalcircuitsforexecutingdifferentmicrooperations.(gates,MUX,de
4、coders,counters).InternalpathformovementofdatabetweenALUandregisters.Drivercircuitsfortransmittingsignalstoexternalunits.Receivercircuitsforincomingsignalsfromexternalunits.PC:KeepstrackofexecutionofaprogramContainsthememoryaddressofthenextinstructiontobefetchedande
5、xecuted.MAR:Holdstheaddressofthelocationtobeaccessed.I/PofMARisconnectedtoInternalbusandanO/ptoexternalbus.MDR:Containsdatatobewrittenintoorreadoutoftheaddressedlocation.IThas2inputsand2Outputs.DatacanbeloadedintoMDReitherfrommemorybusorfrominternalprocessorbus.Thed
6、ataandaddresslinesareconnectedtotheinternalbusviaMDRandMARALU:Usedtoperformarithmeticandlogicaloperation.DataPath:Theregisters,ALUandinterconnectingbusarecollectivelyreferredtoasthedatapath.Registers:TheprocessorregistersR0toRn-1varyconsiderablyfromoneprocessortoano
7、ther.Registersareprovidedforgeneralpurposeusedbyprogrammer.Specialpurposeregisters-index&stackregisters.RegistersY,Z&TEMParetemporaryregistersusedbyprocessorduringtheexecutionofsomeinstruction.Multiplexer:SelecteithertheoutputoftheregisterYoraconstantvalue4tobeprovi
8、dedasinputAoftheALU.Constant4isusedbytheprocessortoincrementthecontentsofPC.Datatransferbetweentworegisters:EX:TransferthecontentsofR1toR4