Chapter2CPUIntroductiontoCPUCentralprocessingunitetchedonsiliconchipcalledmicroprocessorContaintensofmillionsoftinytransistorsKeycomponents:CentralprocessingunitRegistersSystemclockTypesofChipsIntelmakesafamilyofprocessorsPentiumIIIandPentium4processorsinmostPCsCeleronprocessorsoldforlow-costPCsXeonandItaniumforhigh-endworkstationsandnetworkserversOtherprocessorsCyrixandAMDmakeIntel-compatiblemicroprocessorsPowerPCchipsusedprimarilyinMacintoshcomputersHP’sAlphamicroprocessorusedinhigh-endserversMicroprocessorSpeedsMeasureofsystemclockspeedHowmanyelectronicpulsestheclockproducespersecondUsuallyexpressedingigahertz(GHz)BillionsofmachinecyclespersecondSomeoldPCsmeasuredinmegahertz(MHz)ComparisonofclockspeedonlymeaningfulbetweenidenticalmicroprocessorsCPUcycletime–inverseofclockrateCurrentTechnologyCapabilitiesandLimitationsMoore’sLawRateofincreaseintransistordensityonmicrochipsdoublesevery18-24monthswithnoincreaseinunitcostRock’sLawCostoffabricationfacilitiesforchipgenerationdoubleseveryfouryearsIncreasedpackingdensityElectricalresistance3.2ComponentsoftheCPUControlunitMovesdataandinstructionsbetweenmainmemoryandregistersArithmeticlogicunit(ALU)PerformscomputationandcomparisonoperationsSetofregistersStoragelocationsthatholdinputsandoutputsfortheALUActionsPerformedbyCPUFetchcycleCPU:FetchesaninstructionfromprimarystorageIncrementsapointertolocationofnextinstructionSeparatesinstructionintocomponents(instructioncodeanddatainputs)StoreseachcomponentinaseparateregisterExecutioncycleALU:RetrievesinstructioncodefromaregisterRetrievesdatainputsfromregistersPassesdatainputsthroughinternalcircuitstoperformdatatransformationStoresresultsinaregisterCPURegistersPrimaryrolesHolddataforcurrentlyexecutingprogramthatisneededquicklyorfrequently(general-purposeregisters)StoreinformationaboutcurrentlyexecutingprogramandaboutstatusofCPU(special-purposeregisters)General-PurposeRegistersHoldintermediateresultsandfrequentlyneededdataitemsUsedonlybycurrentlyexecutingprogramImplementedwithintheCPU;contentscanbereadorwrittenquicklyIncreasingtheirnumberusuallydecreasesprogramexecutiontimetoapointSpecial-PurposeRegistersTrackprocessorandprogramstatusTypesInstructionregisterInstructionpointerProgramstatusword(PSW)StoresresultsofcomparisonoperationControlsconditionalbranchexecutionIndicatesactualorpotentialerrorconditionsWordSizeNumberofbitsaCPUcanprocesssimultaneouslyIncreasingitusuallyincreasesCPUefficiency,uptoapointOthercomputercomponentsshouldmatchorexceeditforoptimalperformanceImplicationsforsystembusdesignandphysicalimplementationofmemory3.3ThePhysicalCPUElectricaldeviceimplementedassilicon-basedmicroprocessorContainsmillionsofswitches,whichperformbasicprocessingfunctionsPhysicalimplementationofswitchesandcircuitsTransistorsElectronicswitchesthatmayormaynotallowelectriccurrenttopassthroughIfcurrentpassesthrough,switchison,representinga1bitOtherwise,switchisoff,representinga0bitSwitchesandGatesBasicbuildingblocksofcomputerprocessingcircuitsElectronicswitchesControlelectricalcurrentflowinacircuitImplementedastransistorsGatesAninterconnectionofswitchesAcircuitthatcanperformaprocessingfunctiononanindividualbinaryelectricalsignal,orbitElectricalPropertiesConductivityAbilityofanelementtoenableelectronflowResistanceLossofelectricalpowerthatoccurswithinaconductorHeatNegativeeffectsofheat:PhysicaldamagetoconductorChangestoinherentresistanceofconductorDissipateheatwithaheatsinkSpeedandcircuitlengthTimerequiredtoperformaprocessingoperationisafunctionoflengthofcircuitandspeedoflightReducecircuitlengthforfasterprocessingProcessorFabricationPerformanceandreliabilityofprocessorshasincreasedwithimprovementsinmaterialsandfabricationtechniquesTransistorsandintegratedcircuits(ICs)MicrochipsandmicroprocessorsFirstmicroprocessor(1971)–2,300transistorCurrentmemorychip–300milliontransistors3.4FutureTrendsSemiconductorsareapproachingfundamentalphysicalsizelimitsTechnologiesthatmayimproveperformancebeyondsemiconductorlimitationsOpticalprocessingHybridoptical-electricalprocessingQuantumprocessingOpticalProcessingCouldeliminateinterconnectionandsimplifyfabricationproblems;photonpathwayscancrosswithoutinterferingwithoneanotherEliminatingwireswouldimprovefabricationcostandreliabilityNotenougheconomicincentivetobearealityyetElectro-OpticalProcessingDevicesprovideinterfacebetweensemiconductorandpurelyopticalmemoryandstoragedevicesGalliumarsenide(bothopticalandelectricalproperties)Silicon-basedsemiconductordevices(encodedatainexternallygeneratedlaserlight)QuantumProcessingUsesquantumstatestosimultaneouslyencodetwovaluesperbit(qubit)UsesquantumprocessingdevicestoperformcomputationsTheoreticallywell-suitedtosolvingproblemsthatrequiremassiveamountsofcomputation