акумулатор

Въведение

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 -инструкции за логика (ADD, SUB, CMP, AND, OR, XOR, TEST), различни от MUL и DIV, могат да използват 8 регистъра: EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI като Операция за местоназначение (това е местоположението, където се съхранява резултатът).

Централен процесор

Централен процесор(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

  • Контролер: нулиране, активиране (компоненти: брояч, регистър на инструкции, декодер на инструкции, регистър на състоянието, генератор на часовник, генератор на сигнали за микро операции).

Компютърна памет

Компютърна памет(English:Компютърна памет)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.

Аритметично-логическа единица

Аритметично-логическа единица(English:Аритметично-логическа единица,ALU)istheexecutionunitofthecentralprocessingunit,Isthecorecomponentofallcentralprocessingunits.Itisanarithmeticlogicunitcomposedofandgatesandorgates.Themainfunctionistoperformbinaryarithmeticoperations,suchasaddition,subtractionandmultiplication(excludingintegerdivision).Basically,inallmodernCPUarchitectures,binaryisrepresentedintheformoftwo'scomplement.

Вижте

  • Виртуална памет

  • Йерархия на паметта

Related Articles
TOP