Úvod do počítače
ReducedInstructionSetComputing(RISC:ReducedInstructionSetComputing)isacomputerwithashorterinstructionlength,anditsoperatingspeedFasterthanCISC.RISCandCISCareCPUsthatcanbedividedintotwocategoriesfromthecharacteristicsoftheinstructionset:CISCandRISC.RISCistheabbreviationofEnglishReducedInstructionSetComputing,whichis"reducedinstructionoperationset",CISCis"complexinstructionoperationset".TheinstructionsystemofRISCisrelativelysimple.Itonlyrequiresthehardwaretoexecuteverylimitedandmostcommonlyusedinstructions.Mostofthecomplexoperationsusematurecompilationtechnologyandaresynthesizedbysimpleinstructions.Atpresent,theCPUofthisinstructionsystemiscommonlyusedinmiddleandhigh-endservers,especiallythehigh-endserversallusetheCPUoftheRISCinstructionsystem.TheCPUsthatuseRISCinstructionsinmid-to-high-endserversmainlyincludeAlphafromCompaq(Compaq,thenewHewlett-Packard),PA-RISCfromHP,PowerPCfromIBM,MIPSfromMIPS,andSparcfromSUN.
RISCisrelativetothecomplexinstructionsetcomputer(CISC).Theso-calledcomplexinstructionsetcomputerreliesonincreasingthehardwarestructureofthemachinetomeettheincreasingperformancerequirementsofthecomputer.Thedevelopmentofcomputerstructurehasalwaysbeenmonopolizedbyprocessorswithincreasingcomplexity.Inordertoreducethedifferencebetweencomputeroperationsandhigh-levellanguages,inordertoimprovetheoperatingcharacteristicsofthemachine,therearemoreandmoremachineinstructionsandmoreandmorecomplexinstructionsystems..Especiallythecontradictionbetweentheearlierhigher-speedCPUandtheslower-speedmemory.Inordertominimizethenumberofaccesstodataandincreasethespeedofthemachine,acomplexinstructionsethasbeengreatlydeveloped.However,withthedevelopmentofsemiconductorprocesstechnology,memoryThecontinuousincreaseinspeed,especiallytheuseofhigh-speedbuffers,hascausedfundamentalchangesinthecomputerarchitecture.Whilethehardwaretechnologyhasimproved,thesoftwarehasalsoundergoneequallyimportantdevelopments,andoptimizedcompilershaveappearedtoenabletheexecutionofprograms.Timeisreducedasmuchaspossible.Andtominimizethememoryoccupiedbymachinelanguage,withadvancedmemorytechnologyandadvancedcompilerconditions,theCISCarchitectureisnolongerapplicable,sotheRISCarchitecturewasborn.ThebasicstartingpointoftheRISCtechnologyistoadoptReducethemachineinstructionsystemtoreducethecomplexityofhardwaredesignandincreasethespeedofinstructionexecution.InRISC,thecomputeractuallyexecutesinstructionsineverymachinecycle.Nomattersimpleorcomplexoperations,theyareallcompletedbyprogramblocksofsimpleinstructions,whichhasstrongsimulationcapabilities.
InaRISCmachine,itisrequiredtoexecuteallinstructionswithina"singlemachinecycle"time,andthemostfundamentalthroughputlimitofthesystemisdeterminedbytheproportionofthememoryaccesstimeduringprogramoperation.Therefore,aslongasTheCPUexecutiontimeisthesameastheinstructionfetchingtime,andthemaximumsystemthroughputratecanbeobtained.(Foramachinecycletoexecuteaninstruction).InRISCmachines,hardwarecontrolisusedtoachievefastinstructiondecoding,andfewerinstructionsandsimpleaddressingmodesareadopted,andinstructiondecodingandhard-wiredcontrollogicaresimplifiedthroughafixedinstructionformat.Inaddition,RISCdesignisbasedoncomplexcompilationdesignoptimizationtoobtainasimplehardwarechipenvironment.CompileroptimizationcanimprovetheoperatingefficiencyofHLLprograms,butallprogramsmustbewritteninhigh-levellanguages.
RISCdesigneliminatesmicrocoderoutines,andhandsthelow-levelcontrolofthemachinetosoftware.Thatis,usingfasterRAMinsteadofthemicrocodeROMintheprocessorastheinstructioncache(Cache),thecomputer'scontrolresidesintheinstructioncache,sothattheinstructionstreamgeneratedbythecomputersystemandthecompilercanmeettherequirementsofhigh-levellanguageandhardwareperformanceWorkcloselytogether.
Theperformanceofacomputercanbemeasuredbythetimerequiredtocompleteaspecifictask,whichisequaltoC×T×I.
C = počet cyklů potřebných k dokončení každé instrukce, T = doba každého cyklu, I = počet konečných instrukcí za úkol
RISCtechnologyistomakeCandTMinimized,thereductionofCandTmayleadtoanincreaseinI,buttheuseofoptimizedcompilationtechniquesandothertechnologiescanmakeupfortheimpactoftheincreaseinIonmachineperformance.ThereasonwhyRISCtechnologyhasrapidlydevelopedfromanewinsightintoapromisingcomputermarketismainlyduetothefollowingreasons:oneisthattheRISCstructureadaptstotherapiddevelopmentofVLSItechnology;theotheristhatRISCsimplifiestheprocessorstructure,implementationanddebuggingItiseasier,sothedesigncostislow,andthedevelopmentcycleisshort;thethirdistosimplifythestructure,andtheprocessoroccupiesasmallerchiparea,sothatlargerregisterfilescanbeintegratedonthesamechip,translationbackupbuffer(TLB),Coprocessorsandfastmultipliersanddividers,etc.,enabletheprocessortoobtainhigherperformance;fourth,RISC'ssupportforHLLprogramsisbetterthanpreviouscomplexinstructionsystemcomputers,allowingusers(programmers)toeasilyuseaunifiedinstructionset.Itiseasytoestimatetheeffectofcodeoptimization,sothatprogrammershavemoreconfidenceinthecorrectnessofthehardware.
Klasifikace
Použití víceúrovňové struktury potrubí
UsingpipelinetechnologycanmakemultipleinstructionsoverlapexecutionateverymomenttoreducethevalueofCPI,SothattheCPUdoesnotwasteemptycycles.Example:PentiumⅡ/Pro/Celeroncanissueandexecutefiveinstructionsatthesametime,AMD-K6/K6-2canissuesixinstructionsatthesametime.
Simpleinstructionsandsomecomplexinstructionswithhighfrequencyinthemachine
ThiscanreducethenumberofclockcyclesandincreasetheCPUspeed.TheessenceistoreducethevalueunderCPI.Example:Choosearithmeticinstructions,load,storeinstructions,andtransferinstructionsasthemaininstructionset.
Použití LoadandStorestructures
OnlytheLoadandStoreinstructionsareallowedtoperformmemoryoperations,andtherestoftheinstructionsalloperateonregisters.Examples:Amd-K6/K6-2,PⅡ/Celeron/Proallsupportdirectoperationandrenamingofregisters,andgreatlyincreasethenumberofgeneral-purposeregisters.
Pokyny pro zpožděné zatížení a pokyny pro přenos
Becauseofthespeeddifferencebetweenthetwodatafromthememorytotheregister,thetransferinstructionsneedtocalculatetheentryaddress,whichgreatlylimitstheexecutionspeedoftheCPU.Therefore,inordertoensurethehigh-speedoperationofthepipeline,RISCtechnologyallowsanirrelevantimmediatelyexecutableinstructiontobeaddedbetweenthemtoincreasethespeed.
Příklad:Odráží se hlavně v prediktivním provádění, nesekvenčním provádění a přenosu dat atd., kromě IntelP54/55C nepodporuje, jako K6-2, PⅡsupport.
Použití struktury cache
InordertoensuretheuninterruptedtransmissionofinstructionstotheCPUarithmeticunit,theCPUhassetupacertainsizeofCachetoexpandthebandwidthofthememoryandmeettherequirementsoffrequentCPUfetching.Referstorequirements,generallytherearetwoindependentCaches,whichstore"instructions+data"respectively.
Příklad:PⅡ/Celeron:16K+16K,AMD-K6/K6-2 je 32K+32K,CyrixMⅡ:64K (ve skutečnosti dvě 32KCache, to se používá jako sdílená Cache),PⅡpřidává také L2Cache, což výrazně zlepšuje CPU.
Vlastnosti RISC
ThefeaturesofRISCarethattherearefewinstructionsandformats,simpleoperationandcontrol.Specifically,therearethefollowingaspects.
Zjednodušená sada instrukcí
TheRISCstructureadoptsasimplified,long-shortinstructionset,whichenablesmostoperationstoobtainthehighestpossibleefficiency.Someoperationsthatneedtobeimplementedwithmulti-cycleinstructionsinthetraditionalstructurearereplacedbymultiplesingle-cycleinstructionsintheRISCstructurethroughmachinelanguageprogramming.ThesimplifiedinstructionsethasgreatlyimprovedtheperformanceoftheprocessorandpromotedthedesignofRISC.Thereisnodefiniteanswertothequestionofhowsimpleitis.ComparingtheexistingRISCsystemwiththeCISCsystem,wecanseethegeneralsituation.Generally,forRISC:
Počet instrukcí je malý, nejvýše 128.
Existuje několik režimů adresování, ne více než 4 druhy.
Existuje několik formátů instrukcí, ne více než 4 typy.
Itisveryprudenttodealwiththesuggestionsontheexpansionoftheinstructionset.Itmustbecarefullyweighedandverifiedtoseeiftheycanreallyimprovetheperformanceofthecomputer.Forexample,MIPSadoptsarule:addinganinstructionmustmaketheperformancegain1%withinacertainapplicationrange,otherwisethisinstructionwillberejected.
Instrukční hodinový cyklus, délka instrukce je stejná
Ifthetasktobeexecutedbyeachinstructionissimpleandclear,thetimerequiredtoexecuteeachinstructioncanbecompressedorreducedbythenumberofcycles.ThedesigngoalofRISCistoimplementamachinecycletoexecuteaninstruction,makingthesystemoperationmoreefficient.Technologiesthatapproachthisgoalincludeinstructionpipelinesandspecificinstallation/storagestructures.Atypicalinstructionmayincludethestagesoffetching,decoding,executing,andstoringresults.Single-cyclemeanscanbeachievedbymakingallinstructionsthestandardlength.Thestandardinstructionlengthshouldbeequaltothebasicwordlengthofthecomputersystem,usuallyequaltothenumberofdatalinesinthesystem.
Inanyinstructionfetchcycle,acompletesingleinstructionmustbepassedtotheCPU.Forexample,ifthebasewordlengthis32bitsandthedataportionofthesystembusis32lines,thestandardinstructionlengthis32bits.Itisdifficulttomaketheexecutiontimeofallinstructionsconsistent.Someinstructions,includingsimplelogicoperationsonCPUregisters(clearingregisters,etc.),canbeeasilyexecutedwithinoneCPUclockcycle;otherinstructionsmayincludememoryaccess(readingandwritingtomemory,fetching,etc.)orMulti-cycleoperations(multiplication,division,etc.)maynotbeexecutedinasinglecycle.Thisputsforwardsucharequirementtothedesigner;allowsmostfrequentlyusedinstructionstobeexecutedinasinglecycle.
Instrukční potrubí
Thewaytoreducethenumberofcyclesrequiredtoexecuteaninstructionistoexecutemultipleinstructionsoverlapped.Theinstructionpipelineusessuchaworkingmethod:theexecutionofeachinstructionisdividedintoseveraldiscreteparts,andthenmultipleinstructionsareexecutedatthesametime.Thefetchandexecutionphasesofanyinstructionoccupythesametime,ideallyasinglecycle.ThiscanbesaidtobethemostimportantdesignprincipleofRISC.AllinstructionsexecutedfromthememorytotheCPUfollowaconstantflow.Eachinstructionisexecutedatthesamepace,nowaitinginstructions.TheCPUisalwaysbusy.Thenecessaryconditionstoachievepipelineoperationare:
Standard,fixed-lengthinstructions,whichareequaltothewordlengthofthecomputerandthewordlengthofthedataline.
ThestandardexecutiontimeofallinstructionsispreferablywithinasingleCPUcycle.
Forexample,theSPARCchipadoptsafour-stagepipelinestructureforfetching,decoding,executingandwritingresultstomaximizeprocessorperformance.Atthebeginningofeachclockcycle,anewinstructioncanbeexecuted,whichensuresthatanewinstructionisfetchedfromthememoryineachmachinecycle.Therefore,ingeneral,mostinstructionscanbeexecutedinasinglecycle.accomplish.Instrukční potrubítechnologycanbecomparedtoanassemblyline-instructionsarelikeprocessedproducts,fromoneprocesstothenext,untilitisexecuted.
Therefore,itispossiblefortheinstructionpipelinetouseafactorequaltoitspipelinedepthtoreducethenumberofinstructioncycles,butinthiscase,itisrequiredthatthepipelineisalwaysfilledwithusefulinstructionsandnothingpreventsinstructionsfrompassingthroughthepipeline.Demandputsacertainburdenonthestructure.Forexample,competitionforresourcessuchasALUpreventstheflowofinstructionsinthepipeline.Theundesirableconsequencescausedbytheexecutiontimeofdifferentlengthsareevenmoreobvious,whichiswhyRISCdefinesaninstructionsetwiththecharacteristicsdescribedabove.
Struktura Loadandstore(LOAD/Store).
Toexecutememory-relatedoperationinstructions,itisnotrequiredtoincreasethetimeofeachcycleorthenumberofcyclesofinstructions.Oneofthetwomustbechosen.Becausetheseinstructionsneedtocalculatetheaddressoftheoperand,readtherequiredoperandfromthememory,calculatetheresult,andthensendtheresultbacktothememory,theirexecutiontimeismuchlonger.Inordertoeliminatethenegativeeffectsofsuchinstructions,RISCadoptssuchaloadandstorestructure:onlyLoadandStoreinstructionscanaccesstheinter-memory,andallotheroperationsonlyaccesstheregistersstoredintheprocessor.Theoperandin.Itsadvantagesare:
Reducethenumberofaccessestomemoryandreducetherequirementsformemorybandwidth.
Alloperationsarerestrictedtoregistersonly,whichhelpssimplifytheinstructionset.
Cancelingmemoryoperationsmakesiteasierforthecompilertooptimizeregisterallocation—thisfeaturereducesmemoryaccessandalsoreducesthenumberofinstructionspertask.
AllthesecontributetoRISC'sgoalofexecutingoneinstructionpercycle.Nevertheless,loadandstoreinstructionsstillhindertherealizationofIRSC'sdesigngoals.Theuseofoptimizedcompilationtechnologytodealwiththedelayofloadinstructionsandbranchinstructionscanhelpsolvetheproblem.AlthoughoptimizingcompilationtechnologyisnotspecificallyorientedtoRISCstructures,optimizingcompilersrelyonRISCstructurestocompletetheiroutstandingtasks,andRISCstructuresrelyonoptimizingcompilerstogettheirbetterperformance.Theinterpretermustbeabletoanalyzethedataandcontrolflow,andadjusttheorderofexecutionofinstructionsonthisbasis,andcleverlyarrangetheusageofregisters.TheformerfunctioncanreducetheidletimeoftheCPU,andthelatterfunctioncanincreasethereusabilityrateofthedatastoredintheregister,reducethenumberofmemoryaccesses,andshortenthelengthofthedatapath.
Získejte větší registrační sadu
Inordertofacilitatetherealizationoftheoperationofmostinstructionsbetweenregisters,thatis,theso-calledregister-to-registeroperation,theremustbeasufficientamountofCPUgeneral-purposeregisters.AsufficientamountofregistersmakesitnecessarytotemporarilystoretheintermediateresultsforoperationsintheCPUregistersinsubsequentoperations,thusreducingtheloadingandstoringofthememory,andspeedinguptheoperation.Atleast32general-purposeCPUregistersareusedinindustrializedRISCsystems.
Použití pevného drátového ovládání
Duetotheflexibilityprovidedbymicroprogrammingtodesigners,manyCISCsystemsarecontrolledbymicroprogramming.Differentinstructionsusuallyhavedifferentlengthsofmicroprograms,whichmeansthatthenumberofcyclesexecutedbyeachinstructionisdifferent,whichcontradictstheconsistentandstreamlinedprocessingprincipleofallinstructions.Butthiscanbesolvedbyhard-wiredcontrol,andthespeedwillbefaster.Therefore,RISCshouldbecontrolledbyhard-wiredwires.Theremaybeexceptionswheneachinstructionhasaone-to-onecorrespondencewithasinglemicro-instruction,thatis,eachmicro-programconsistsofasinglecontrolword.Thisdesigncanbeasfastandasefficientashard-wiredcontrol,andallowsdesignerstobenefitfromtheadvantagesofmicroprogramming.Použití pevného drátového ovládánímakestheRISCsystemcontrollersimple.Thesimplicityofthedesignmakesthelayoutofthemachinemorereasonable,allowingthedesignertoconcentrateonoptimizingtheremaining,few,butcriticalprocessorfeatures.Thesimplifiedstructurerelievestheshortageofarearesourcesonthechip.Somestructuresthatarecriticaltoperformance,suchaslargeregistercomponents,conversionlookupbuffer(TLB)Scoprocessor,andmultiplicationanddivisionunitcanallbeinstalledonthesamechip..Theseadditionalresourcesaddagreatperformanceadvantagetotheprocessor.Infact,RISCdoesnotnecessarilyhavetheabovecharacteristicsstrictly,andsomesystemscalledRISCevenviolatesomeoftheaboveaspects.TheabovecharacteristicsshouldbeusedasaguidingprincipletoexplainthenatureofRISC.Torelax,asystemthatsatisfiesmostofthesecharacteristicscanberegardedasaRISC.
Výhody
RISC může zlepšit rychlost při zachování nízkých nákladů.
ApplicableVLSI(VERYLARGESCALEINTEGRATION)process.
BecausetheRISCinstructionsetisclearandsimple,itonlyneedsarelativelysmallandsimplecontrolunitdecodingandhardwareexecutionsubsystem.ThisleadstothefollowingresultswhenusingVLSItoimplementcomputersystems:
Část čipu obsazená řídicí jednotkou je značně snížena. Například RlsCI představuje 10 %, zatímco CISC obvykle připadá na více než 50 %.. V RISCVLSI čipu tedy zbývá více volného místa, takže celý CPU a další součásti jsou na jednom čipu, v jednom bodě, nebo na jedné části, na jednom hlavním čipu (např.
Becausethecontrolareaisreduced,itispossibletoincreasetheamountofCPUregisters(138forRISCI)onthechip.
ByreducingtheareaofthecontrolunitontheVLSIchipandplacingalargenumberofconsistentregisters,theregularizationfactor(regulariZationfaetor)ofthechipcanbeimproved.Basically,thehighertheregularizationfactor,thelowertheVLSIdesigncost.
ItisbeneficialtouseGaAs(galliumarsenide)VLSIchipimplementationtechnology,becauseitissuitableformanufacturinghigh-densitychips.Inshort,itreducesthecomplexityoftheprogramandsimplifiesthestructure.
Vysoká rychlost.
OneofthecharacteristicsofRISCistheinstructionpipeline,andtheconsistencyofinstructionlengthandexecutiontimeminimizesthewaitingandholdingtimeinthepipeline.Thesefactorshelpincreasethecalculationspeed.ThesimplerandsmallercontrolunitinRISCalsohasfewerdoors,whichmakesthesignaltransmissionpathofthecontrolunitshorterandspeedsuptheoperation.Thesimplificationoftheinstructionsetresultsinasmallandsimpledecodingsystem,whichcanspeedupthedecodingspeedofRISC.ThereductionofcontrolunitsbyhardwiringmakesRISCperformfasterthansystemsusuallycontrolledbymicroprograms.TherelativelylargeCPUregisterreducestheconflictsbetweenCPUandmemoryinfetchinginstructionsandstoringnumbers;thelargeregistergroupcanbeusedtostoretheparameterspassedbetweenthecallingprocessandthecallingprocess,andstoretherelevantinformationoftheinterruptprogram,otherwise,Thisinformationcanonlybestoredinmemory.Allthesesavealotofcomputerprocessingtime.Thebranchdelaytechniqueinoptimizingcompilationalsocontributestotheincreaseinspeed.Ingeneral,RISCisgenerally2to4timestheprocessingspeedofCISCwhenthefunctionsareroughlythesame.
Snižte designcozlepšetespolehlivost
CPUisrelativelysmallandsimplecontrolunitItusuallyleadstothefollowingcostandreliabilitybenefits:a.ThedesigntimeoftheRISCcontrolunitisshortened,whichcanreducetheoveralldesigncost.b.Theshortdesigntimereducesthepossibilityofthefinalproductbeingdiscardedwhenthedesigniscompleted.c.Simpler,smallercontrolunitcanreducedesignerrors,therebyimprovingreliability;moreover,itiseasiertolocateandcorrecterrorsthanCISC.d.Becausetheinstructionformatl(or2types)issimpleandfew,allinstructionshaveastandardlength,sotheinstructionwillnotcrossthewordboundary,norwillitcrossdifferentpagesinthevirtualmemory(iVrtualMemory),whichexcludesvirtualmemorymanagementPotentialdifficultiesinsubsystemdesign.
Podporujte jazyk vysoké úrovně, ale ne jazyk sestavování
TheevolutionfromCISCtoRISCTheprocessissimilartothedevelopmentprocessofassemblylanguagetohigh-levellanguage.Writingaprograminassemblylanguageneedstousesomewell-designedcomplexinstructions,whilewritingahigh-levellanguageisalmostdifferentfromcomplexinstructions.Whilepursuingstreamlinedinstructions,RISCcloselyintegratesthedesignofthearchitectureandoptimizedcompilation,sothattheintegratedresultsleadtotheimprovementofoverallperformance.IfthedevelopmentofRISCisbasedontheimprovementofVLSItechnologyandcompilationtechnology,itcanbeunderstoodasreplacingthecomplexinstructionsystemwithcomplexcompilation,anditcanevenberegardedasthetransferofhardwareproblemstosoftware.Inrecentyears,therapiddevelopmentofintelligentcompilerscaneasilyperformthistask.PerhapstheadvantageofRISCliesinthis.TraditionalCISCmusthavecomplicatedmicrocodewritinganddesignwork,andtheuseofassemblylanguagealsoinvolvesthedevelopmentofassemblyprograms,whichareverylabor-intensiveandtime-consuming.RISCismoreconducivetosupportinghigh-levellanguages,whichisalsooneofthewaystosolvethe"softwarecrisis"facedbycomputersforalongtime.ThesuccessofRISCliesinsoftwarecompatibility.Aslongasthesource-levelcompatibilityismadethroughrecompilation,theexistingsoftwarecanbeeasilyrunontheRISCmachine.
Výhody pro programátory (uživatele)
ThesimplifiedstructureenablesprogrammersAlsogotmanybenefits:
Sjednocená sada instrukcí je velmi pohodlná.
Sincethereisarelativelystrictcorrespondencebetweenthenumberofinstructionsandthenumberofcycles,theactualeffectofcodeoptimizationcanbeeasilymeasured.
Programátoři mají přesnější grafický hardware.
Nevýhody
Thereisanupsurgeinthecomputerworldtofindbetterperformance.RISCandCISCarebothconfrontingandcomplementary.RISChasitsownshortcomings.
Thelengthoftheinstructionsaftercompilationislonger,andthememoryneedstobelarger
TheshortcomingsofRISCaredirectlyrelatedtosomeofitsadvantages.BecauseRISChasasmallnumberofinstructions,somefunctionsthatcanbecompletedbyonlyoneinstructioninCISCrequiretwo,threeormoreinstructionsinRISC,whichmakestheRISCcodelonger,soRISCprogramsrequiremorememory.InstructionconflictsbetweenmemoryandCPUwillalsoincrease.Researchshowsthat,onaverage,toperformthesamefunction,aRISCprogramis30%longerthanaCISCprogram.Atthesametime,RISChashigherrequirementsforcompilers.Thedesignofoptimizingcompilersisaverycomplexandtechnicallydemandingwork.ItmustbecompiledbytheRISCmachinemanufactureritself,becauseitisimpossibletogenerateacompilationwithoutdetailedRISCoriginaldata.Theobjectcodeoftheprogram.Inthisway,itismoredifficultforthird-partycompaniestoprovidenewversions,usershavelesschoice,andsoftwarecostsincrease.
Largeregisterbankmakesaddressingcomplicatedandslowsdown
AcontroversialfeatureofRISCsystemisitslargeregisterbank.Thelargeregisterbankhastheaforementionedadvantages,butontheotherhand,therearealsodisadvantages.Thelargeregisterincreasestheaddressingtime.Ontheotherhand,somecompilersmaketheuseofthesmallregisterbankmoreeffective.HowbigtheCPUregisterbankshouldberemainstobediscussed,andthelargeregisterUbankcanalsobereplacedbyacache(CACHE).Theshortcomingsofthelargeregisterbankcanbesummarizedasfollows:
Longaccesstime.
Theregisterbank zabírá více čipového prostoru.
Advancedcompilationtechnologymakesthesmallregisterbankmoreeffective.
IfallCPUregistersinthecontextswitchscenearesaved,thelargeregisterbankwillsavemorestoragetime.
Ifawindowpointerisused(oneofthekeypointsintheimplementationofRISCistooverlaptheregisterwindow,thepurposeistofacilitateparametertransfer.Theoverlapregisterwindowneedstousethewindowpointer),registeraddresstranslationThecodewillbelonger.Atthesametime,overlappingregistersalsocomplicatetheCPUlogic.
Pevné kabelové ovládání není flexibilní
Thereisagreaterpossibilityoferrors,anditisnoteasytofindandmodifyerrors,anddealwiththemComplexinstructionsarealsomoredifficult.(4)Single-wordinstructionscannotusedirectmemoryaddressingforfull32-bitaddresses.Forthisreason,somemanufacturershavemadeasmallnumberofinstructionswithdouble-wordcards(suchasINTEL80960).Theuseofsuchinstructionsisuptotheprogrammertowritecompleteprogramswithonlysingle-wordinstructions.
Vyhlídky rozvoje
ThebasicstartingpointofRISCtechnologyistoreducethecomplexityofhardwaredesignandincreasethespeedofinstructionexecutionbystreamliningthemachineinstructionsystem.AlthoughRISC'sdesignideashavehadahugeimpactonthecomputerstructureandachievedgreatsuccess,thecomplexinstructionsetcomputer(CISC)technologymakestheprogrammingoftheprogramrelativelyeasier.Therefore,theCISCtechnologyandtheRISCtechnologyarenotcompatible.Theyarenotisolatedfromeachother.Atpresent,thereisanewdesignidea,whichisbasedonimprovingtheperformanceoftheentirecomputersystem,andhasabsorbedtheadvantagesofCISCandRISCinstructure.Forexample,RISCtechnologyisusedinmanyCISCdesigns.TheNSC32532microprocessorofNationalSemiconductorCorporationadoptsRISCtechnologyinCISCdesign,whichreducestheaverageexecutiontimeofinstructionsfromtheoriginal6machinecyclestolessthan2.4machinecycles.Underthemainfrequencyof26MHZ,theoperatingspeedcanreach10-12M1PS.Intel80486andMot.r.la68040alsoabsorbsRISCdesigntechnology,sothattheaverageexecutiontimeofeachinstructionislessthan2machinecycles.Fairchild'sClippermachineisa32-bitmicroprocessorthatintegratestheadvantagesofR1SCandCISCtechnology,anditsrunningspeedisashighas33MIPS.Therefore,thecurrenttwomainmethodsofdesigningprocessors(RISCandClSCtechnology)arenotcompletelyseparate.Theyarecomplementarytoeachother.Atpresent,peoplehavecombinedCISCtechnologyandRISCtechnologytoproposeawritableinstructionsetcomputer(WISC)structuredesign,andspecifythestrategicprinciplesofconcentratingtheadvantagesofRlscandClsc,nevertheless,itisstillafurtherreleaseofaRISCtechnicaldogbasedontheconceptofRlSC.
Atpresent,mostRISCprocessorshavereachedthegoalofexecutingoneinstructionpercycle(ieCPIratio),butthisisnotthelimit.SuperscalarandsuperpipelinetechnologyhaveappearedinRISCtechnology.Superscalartechnologyistomakethemicroprocessorexecuteseveralinstructionsinparallelinoneclockcycle,whilesuperpipelinetechnologyisthatthemainstreampipelinesegment(instructiondecodingandinstructionexecution)onlyoccupiesapartofoneclockcycle,sothatitcanstillbeSeveralinstructionsIntel8096areexecutedsimultaneouslyinoneclockcycle.Itusessuperscalartechnology,whichcanexecuteintegerinstructionsandfloatingpointinstructionsatthesametime.IBM'sRS/6000alsousesasuperscalarstructure,theprocessorcontainsthreedifferentprocessingcomponents:fixed-pointprocessor,floating-pointprocessor,Branchprocessor,oneclockcyclecanexecutefourinstructions(4IPC),upto6IPc.RIScscientistspointedoutthattheencouragingprocessofimprovingmicroprocessorperformanceinthepastisunlikelytocontinue.Inthefuture,Cachecapacityanditsstructureandoptimizedcompilerwillbecomekeyfactorsinimprovingcomputerperformance.Thefocusoffuturedevelopmentwillbeonmulti-processortechnology.