版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
计算机专业英语教程(第5版)翻译完整版1.1ACloserLookattheProcessorandPrimaryStorage仔细看看处理器和主存储器Wehavelearnedthatallcomputershavesimilarcapabilitiesandperformessentiallythesamefunctions,althoughsomemightbefasterthanothers.Wehavealsolearnedthatacomputersystemhasinput,output,storage,andprocessingcomponents;thattheprocessoristhe“intelligence”ofacomputersystem;andthatasinglecomputersystemmayhaveseveralprocessors.Wehavediscussedhowdataarerepresentedinsideacomputersysteminelectronicstatescalledbits.Wearenowreadytoexposetheinnerworkingsofthenucleusofthecomputersystem—theprocessor.我们已经知道,所有的计算机都具有相似的能力,并且在本质上执行相同的功能,尽管一些可能会比另一些快一点。我们也知道,一个计算机系统具有输入,输出,存储和处理部件;处理器是一个计算机系统智能核心,并且一个计算机系统可以有许多个处理器。我们已经讨论过如何在计算机系统内部,用被称作“位”的电子状态来表现数据,现在我们要弄明白计算机系统的核心,即处理器,的内在的工作方式。Theinternaloperationofacomputerisinteresting,buttherereallyisnomysterytoit.Themysteryisinthemindsofthosewholistentohearsayandbelievescience-fictionwriter.Thecomputerisanonthinkingelectronicdevicethathastobepluggedintoanelectricalpowersource,justlikeatoasteroralamp.计算机的内部操作很有意思,但确实没有什么神秘可言。所谓的神秘只是存在于些那听信传闻和相信科幻小说作家的人的意识中。计算机就是一种没有思想的需要接通电源的电子设备而已,与烤面包机和台灯差不多。1/8
Literallyhundredsofdifferenttypesofcomputersaremarketedbyscoresofmanufacturers[1].Thecomplexityofeachtypemayvaryconsiderably,butintheendeachprocessor,sometimescalledthecentralprocessingunitorCPU,hasonlytwofundamentalsections:thecontrolunitandthearithmeticandlogicunit.Primarystoragealsoplaysanintegralpartintheinternaloperationofaprocessor.Thesethree—primarystorage,thecontrolunit,andthearithmeticandlogicunit—worktogether.Let’slookattheirfunctionsandtherelationshipsbetweenthem.不加夸张地讲,市场上有几百种不同类型的计算机在销售.每种电脑在复杂性上可能有很大区别,但归根结底,每种处理器,有时称为中央处理器即cpu,只有两个基本部分:控制单元和计算逻辑单元.主内存在处理器内部操作中也是一个不可缺少的部分.这三个部件--主内存,控制单元和计算逻辑单元--一起工作.然我们看看它们(各自的)功能和它们之间的联系。Unlikemagneticsecondarystoragedevices,suchastapeanddisk,primarystoragehasnomovingparts.Withnomechanicalmovement,datacanbeaccessedfromprimarystorageatelectronicspeeds,orclosetothespeedoflight.Mostoftoday’scomputersuseDRAM(DynamicRandom-AccessMemory)technologyforprimarystorage.Astate-of-the-artDRAMchipaboutoneeighththesizeofapostagestampcanstoreabout256,000,000bits,orover25,600,000charactersofdata!主存与其他的辅助存储器(如:磁带、硬盘)不一样的是,主存不含有运转部件。由于没有机械运转的需要,主存种数据访问可以达到电子的速,度或接近于光速。当今计算机的主存大多数使用DRAM(动态随机存取存储器)技术。目前最新的工艺水平是:一块只有大约1/8张邮票大小的DRAM芯片却可以存储大约256,000,000位,约25,6000,000个字符的数据。Primarystorage,ormainmemory,providestheprocessorwithtemporarystorageforprogramsanddata.Allprogramsanddatamustbetransferredtoprimarystoragefromaninputdevice(suchasaVDT)orfromsecondary2/8
storage(suchasadisk)beforeprogramscanbeexecutedordatacanbeprocessed.Primarystoragespaceisalwaysatapremium;therefore,afteraprogramhasbeenexecuted,thestoragespaceitoccupiedisreallocatedtoanotherprogramawaitingexecution.主存储器,也就是说内存,用于为处理器暂时存放程序和数据。所有的程序和数据在被操作之前必须从输入设备(如VDT)或者辅助存储器转存到主存储器中。主存储器存储容量通常是相当有限的,因此,在一个程序执行结束,它所占用的存储空间必须被重新分配给其它正在等待执行操作的程序。Figure1-1illustrateshowallinput/output(I/O)is“readto”or“writtenfrom”primarystorage.Inthefigure,aninquiry(input)ismadeonaVDT.Theinquiry,intheformofamessage,isroutedtoprimarystorageoverachannel(suchasacoaxialcable).Themessageisinterpreted,andtheprocessorinitiatesactiontoretrievetheappropriateprogramanddatafromsecondarystorage[3].Theprogramanddataare“loaded”,ormoves,toprimarystoragefromsecondarystorage.Thisisanondestructivereadprocess.Thatis,theprogramanddatathatarereadresideinbothprimarystorage(temporarily)andsecondarystorage(permanently).Thedataaremanipulatedaccordingtoprograminstructions,andareportiswrittenfromprimarystoragetoaprinter.图1-1描述了输入/输出设备与主存储器间的读和写过程。在图中,VDT发出一个输入请求,请求是以消息模式通过通道(如同轴电缆)发送到主存储器。这个查询被解释,处理器发起操作从辅助存储器中调用合适的程序和数据。程序和数据从辅助存储器传送到主存储器中,这是一个非破坏性的读取过程,也就是说,程序和数据同时存在于主存(临时保存)和辅助存储器(永久保存)中。根据程序指令的指示,处理器对数据进行操作,从并主存传送一份报告到打印机。Aprograminstructionorapieceofdataisstoredinaspecificprimarystoragelocationcalledanaddress.Addressespermitprograminstructionsanddatatobelocated,accessed,andprocessed.Thecontentofeach3/8
addressisconstantlychangingasdifferentprogramsareexecutedandnewdataareprocessed.程序指令和数据是存储在主存中一个特殊的位置,称为地址空间。通过地址空间可以实现计算机对程序指令和数据的定位、访问和处理。地址空间的内容是经常变化的,这是由于计算机一直在执行不同的程序和数据。Anothernameforprimarystorageisrandom-accessmemory,orRAM.Aspecialtypeofprimarystorage,calledread-onlymemory(ROM),cannotbealteredbytheprogrammer.ThecontentsofROMare“hard-wired”(designedintothelogicofthememorychip)bythemanufacturerandcanbe“readonly”.Whenyouturnonamicrocomputersystem,aprograminROMautomaticallyreadiesthecomputersystemforuse.ThentheROMprogramproducestheinitialdisplayscreenprompt.主存储器也称为随机存取存储器,或RAM。还有一种特殊的主存储器,称为只读存储器(ROM),这种存储器不能被程序更改存放的内容。ROM的内容是被生产商通过硬件电路写入的,并且不能被重写。当你启动计算机,ROM中的一个程序会自动就绪等待计算机系统的调用,然后在显示器中显示开机提示。AvariationofROMisprogrammableread-onlymemory(PROM).PROMisROMintowhichyou,theuser,canload“read-only”programsanddata.OnceaprogramisloadedtoPROM,itisseldom,ifever,changed[4].However,ifyouneedtobeabletorevisethecontentsofPROM,thereisEPROM,erasablePROM.Beforeawriteoperation,allthestoragecellsmustbeerasedtothesameinitialstate.可编程只读存储器(PROM)是另一种ROM,它可以载入只读的程序和数据,一旦载入,将不再改变。然而,若果你需要去修正PROM的内容,可以使用可擦可编程只读存储器。EPROM在进行一次写操作之前,所有的存储单元必须被还原为同一初始状态。Amoreattractiveformofread-mostlymemoryiselectricallyerasableprogrammableread-onlymemory(EEPROM).Itcanbewrittenintoatanytime4/8
withouterasingpriorcontents;onlythebyteorbytesaddressedareupdated.一种更吸引人的可改写只读存储器是电可擦除可编程只读存储器(EEPROM)。它可以在任何时候写入,而且不会擦除以前的内容;只会更新被寻址的字节。TheEEPROMcombinestheadvantageofnonvolatilitywiththeflexibilityofbeingupdatableinplace[6],usingordinarybuscontrol,address,anddatalines.电可擦可编程存储器把非易失性优点和可更新、需要更新的地方的灵活性结合起来,修改时使用普通的总线控制线、地址线和数据线。Anotherformofsemiconductormemoryisflashmemory(sonamedbecauseofthespeed).FlashmemoryisintermediatebetweenEPROMandEEPROMinbothcostandfunctionality.LikeEEPROM,flashmemoryusesanelectricalerasingtechnology.Anentireflashmemorycanbeerasedinoneorafewseconds,whichismuchfasterthanEPROM.Inaddition,itispossibletoerasejustblocksofmemoryratherthananentirechip.However,flashmemorydoesnotprovidebyte-levelerasure[7].LikeEPROM,flashmemoryusesonlyonetransistorperbit,andsoachievesthehighdensityofEPROM.另一种半导体记忆体是闪存(意味着速度快)。闪存在性价比上处于EPROM和EEPROM之间,它使用电擦写技术。整个闪存的内容可以在一到几秒内被清除,这是远快于EPROM的。另外,它还可以对部分记忆块而不是整个存储器进行清除。然而,闪存并不提供字节级的擦除。像EPROM,闪存只使用一个晶体管每比特,因此可以实现高密度的EPROM。CacheMemoryProgramanddataareloadedtoRAMfromsecondarystoragebecausethetimerequiredtoaccessaprograminstructionorpieceofdatafromRAMissignificantlylessthanfromsecondarystorage.ThousandsofinstructionsorpiecesofdatacanbeaccessedfromRAMinthetimeit5/8
wouldtaketoaccessasinglepieceofdatafromdiskstorage[8].RAMisessentiallyahigh-speedholdingareafordataandprograms.Infact,nothingreallyhappensinacomputersystemuntiltheprograminstructionsanddataaremovedtotheprocessor.Thistransferofinstructionsanddatatotheprocessorcanbetime-consuming,evenatmicrosecondspeeds.Tofacilitateanevenfastertransferofinstructionsanddatatotheprocessor,mostcomputersaredesignedwithcachememory.Cachememoryisemployedbycomputerdesignerstoincreasethecomputersystemthroughput(therateatwhichworkisperformed).程序和数据从辅助存储器装载到RAM中是因为对RAM中的程序指令和数据的访问时间要明显的少于从辅助存储器访问。数以千条的指令和数据能被访问而只需花费从硬盘访问一次数据的时间。RAM是数据和程序的上,计算机系统不会进行任何操作直到程序指令被传入处理器进行执行,这种指,即使传输速度已经是以纳秒来计算了。为了,大多数计算机设计使用高速缓存。计算机设计者使重要的高速存放区,事实令和数据的传输是需要花费时间的能更快速的传输指令和数据用高速缓存来提高计算机系统的总处理能力(工作效率)。LikeRAM,cacheisahigh-speedholdingareaforprograminstructionsanddata.However,cachememoryusesSRAM(StaticRAM)technologythatisabout10timesfasterthanRAMandabout100timesmoreexpensive.WithonlyafractionofthecapacityofRAM,cachememoryholdsonlythoseinstructionsanddatathatarelikelytobeneedednextbytheprocessor.Twotypesofcachememoryappearwidelyincomputers.ThefirstisreferredtoasinternalcacheandisbuiltintotheCPUchip.Thesecond,externalcache,islocatedonchipsplacedclosetotheCPUchip.Acomputercanhaveseveraldifferentlevelsofcachememory.Level1cacheisvirtuallyalwaysbuiltintothechip.Level2cacheusedtobeexternalcachebutisnowtypicallyalsobuiltintotheCPUlikelevel1cache.6/8
和RAM一样,高速缓存也是程序指令和数据的高速存储区。然而,高速缓存使用静态RAM技术,这种技术比RAM在速度上要高出10倍,价格上高出100倍。cache只保存内存中那
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 互动教学制度
- 幼儿园篮球团队奖惩制度
- 主要涉水部门联系单制度
- 集团财务报奖惩制度
- 乡镇卫生院职工奖惩制度
- 孩子学习生活奖惩制度
- 机电安装员工奖惩制度
- 小水电站值班员奖惩制度
- 学风建设部门中奖惩制度
- 煤矿检修车间奖惩制度
- 超声引导下留置针穿刺技术临床应用与进展
- DLT5210.1-2021电力建设施工质量验收规程第1部分-土建工程
- 中医急诊培训课件
- 科技研发服务协议书
- 2023年4月29日福建省事业单位《综合基础知识》真题及答案
- 《专题三 亚洲的人口和经济》教案-2024-2025学年仁爱科普版(2024)初中地理七年级下册
- 镁合金企业安全生产培训
- 泌尿系CTU检查流程
- DB37 T 2318-2013 海洋钢筋混凝土结构重防腐涂料评价方法
- (完整版)中医医院医疗设备配置标准(2012年)
- 全国计算机等级考试二级Python编程真题及答案解析(共10套真题)
评论
0/150
提交评论