Johdanto
Inthecentralprocessingunit,theaccumulator(accumulator)isaregisterusedtostoreintermediateresultsgeneratedbycalculations.Ifthereisnoregisterlikeanaccumulator,thenaftereverycalculation(addition,multiplication,shift,etc.),theresultmustbewrittenbacktothememory,andmaybereadbackimmediately.However,thespeedofaccesstothemainmemoryisslowerthantheaccessfromthearithmeticlogicunittotheaccumulatorwithadirectpath.
Thestandardexampleistoaddupthenumbersinacolumn.Atthebeginningtheaccumulatorissettozero,andeachnumberisaddedtotheaccumulatorinsequence.Whenallthenumbersareadded,theresultiswrittenbacktothemainmemory.
Today'sCPUusuallyhasmanyregisters,allormostofthemcanbeusedasaccumulators.Forthisreason,theterm"accumulator"isabitold.Thistermisalmostnotusedinmicroprocessorregisters.Forexample,thesymbolbeginningwith"A"inthenameofarithmeticregisterisderivedfromthehistoricalfactorof"accumulator"(sometimesitisnotconsidered"arithmetic").Itmayalsobeconfusingthattheprefix"A"inthenameoftheregisteralsomeans"address",suchastheMotorola68000family.
Early4-bitand8-bitmicroprocessorstypicallyhadasingleaccumulator.The8051microcontrollerhastwoaccumulators:amasteraccumulatorandaslaveaccumulator.Theslaveaccumulatorisonlyusedformultiplication(MULAB)anddivision(DIVAB).The16-bitresultofthemultiplicationisplacedintwo8-bitaccumulators.Duringdivision,thequotientisplacedinthemasteraccumulator,andtheremainderisplacedintheslaveaccumulator.Thedirectsuccessorsof8008,8080and8086,pioneeredthex86instructionsetarchitectureandstillusetwoaccumulators:themasteraccumulatorEAXandtheslaveaccumulatorEDXareusedforlargenumberoperationsinmultiplicationanddivision.Forexample,MULECXwillmultiplytwo32-bitregistersECXandEAX,andthe64-bitresultwillbeplacedinEAXandEDX.Butotherarithmetic -logiikkaohjeet (LISÄÄ, SUB, CMP, JA, TAI, XOR, TEST)muut kuin MULandDIV voivat käyttää 8 rekisteriä: EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI on kohdeoperandi (eli sijainti, johon se on tallennettu).
Prosessori
Prosessori(English:CentralProcessingUnit,abbreviation:CPU),isoneofthemainequipmentofacomputer,whosefunctionismainlytointerpretcomputerinstructionsandprocessdataincomputersoftware.Computerprogrammabilitymainlyreferstotheprogrammingofthecentralprocessingunit.Thecentralprocessingunit,internalmemoryandinput/outputdevicesarethethreecorecomponentsofmoderncomputers.Beforethe1970s,thecentralprocessingunitwascomposedofmultipleindependentunits.Later,thecentralprocessingunitmadeofintegratedcircuitswasdeveloped.Thesehighlycontractedcomponentsaretheso-calledmicroprocessors.ThemostcomplexcircuitofthebranchedcentralprocessingunitcanbeMakeasingletinyandpowerfulunit.
Inabroadsense,thecentralprocessingunitreferstoaseriesoflogicalmachinesthatcanexecutecomplexcomputerprograms.Thisvaguedefinitioneasilyincludesearlycomputersbeforethename"CPU"wascommonlyused.Inanycase,atleastsincetheearly1960s(Weik1961),thisnameanditsabbreviationhavebeguntobewidelyusedinthecomputerindustry.Althoughcomparedwiththeearlydays,the"centralprocessingunit"hasgreatlydevelopedinphysicalform,designandmanufacturing,andtheexecutionofspecifictasks,butitsbasicoperatingprincipleshavenotchanged.
Earlycentralprocessingunitsareusuallycustomizedforlarge-scaleandapplication-specificcomputers.However,thisexpensivemethodofcustomizingCPUsforspecificapplicationshaslargelygivenwaytodevelopingcheap,standardized,andsuitableprocessorsforoneormorepurposes.Thisstandardizationtrendbeganintheeraofmainframesandmicrocomputerscomposedofasingletransistor,andacceleratedwiththeadventofintegratedcircuits.ICallowsmorecomplexcentralprocessingunitstobedesignedandmanufacturedinasmallspace(ontheorderofmicrometers).Thestandardizationandminiaturizationofcentralprocessingunitshavemadethistypeofdigitalequipmentandelectronicpartsappearmorefrequentlyinmodernlifethancomputersdedicatedtolimitedapplications.Modernmicroprocessorsappearineverythingfromcarstomobilephonestochildren'stoys.
Computer:arithmetic,logic(components:arithmeticlogicunit,accumulator,registerset,pathconverter,databus);
Ohjain: nollaa, ota käyttöön (komponentit: laskuri, ohjerekisteri, käskydekooderi, tilarekisteri, kellogeneraattori, mikrotoimintojen signaaligeneraattori).
Tietokoneen muisti
Tietokoneen muisti(English:Tietokoneen muisti)isakindofstoragedatamadeusingsemiconductortechnologyElectronicequipment.Thedataintheelectroniccircuitisstoredinabinarymanner,andeachstorageunitofthememoryiscalledamemoryelement.
Memory,alsoknownasmemory,isastoragespacethatcanbedirectlyaddressedbytheCPUandismadeofsemiconductordevices.Thememoryischaracterizedbyfastaccessspeed.Memoryisthemaincomponentofthecomputer,itisrelativetotheexternalmemory.Theprogramsweusuallyuse,suchasWindowsoperatingsystem,typingsoftware,gamesoftware,etc.,aregenerallyinstalledonexternalstoragesuchasharddisks.Toreallyuseitsfunctions,weusuallyenteraparagraphoftextorplayagame,whichisactuallydoneinmemory.Justlikeinastudyroom,thebookshelvesandbookcasesstoringbooksareequivalenttotheexternalstorageofthecomputer,andthedeskwhereweworkisthememory.Usuallywestorealargeamountofdatatobestoredpermanentlyontheexternalmemory,andputsometemporaryorasmallamountofdataandprogramsonthememory.Ofcourse,thequalityofthememorywilldirectlyaffecttheoperatingspeedofthecomputer.
Aritmeettinen logiikkayksikkö
Aritmeettinen logiikkayksikkö(English:Aritmeettinen logiikkayksikkö,ALU)istheexecutionunitofthecentralprocessingunit,Isthecorecomponentofallcentralprocessingunits.Itisanarithmeticlogicunitcomposedofandgatesandorgates.Themainfunctionistoperformbinaryarithmeticoperations,suchasaddition,subtractionandmultiplication(excludingintegerdivision).Basically,inallmodernCPUarchitectures,binaryisrepresentedintheformoftwo'scomplement.
Katso
Virtuaalinen muisti
Muistihierarkia