akumulátor

Úvod

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 -logické instrukce(ADD,SUB,CMP,AND,OR,XOR,TEST)kromě MULaDIVmůžepoužít8registrů:EAX,ECX,EDX,EBX,ESP,EBP,ESI,EDIasOperand(to je umístění, kde je uložen výsledek).

Centrální procesorová jednotka

Centrální procesorová jednotka(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);accumulator

  • Ovladač:reset,povolení(komponenty:počítač,registr instrukcí,dekodér instrukcí,registr stavu,generátor hodin,generátor mikroprovozních signálů).

Počítačová paměť

Počítačová paměť(English:Počítačová paměť)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.

Aritmetická logická jednotka

Aritmetická logická jednotka(English:Aritmetická logická jednotka,ALU)istheexecutionunitofthecentralprocessingunit,Isthecorecomponentofallcentralprocessingunits.Itisanarithmeticlogicunitcomposedofandgatesandorgates.Themainfunctionistoperformbinaryarithmeticoperations,suchasaddition,subtractionandmultiplication(excludingintegerdivision).Basically,inallmodernCPUarchitectures,binaryisrepresentedintheformoftwo'scomplement.

Vidět

  • Virtuální paměť

  • Hierarchie paměti

Související články
HORNÍ