CHAPTER 4 The Components of the System 4. Memory 課件

CHAPTER 4 The Components of the System 4. Memory 課件

ID:39742482

大?。?62.09 KB

頁數(shù):13頁

時間:2019-07-10

CHAPTER 4 The Components of the System  4. Memory 課件_第1頁
CHAPTER 4 The Components of the System  4. Memory 課件_第2頁
CHAPTER 4 The Components of the System  4. Memory 課件_第3頁
CHAPTER 4 The Components of the System  4. Memory 課件_第4頁
CHAPTER 4 The Components of the System  4. Memory 課件_第5頁
資源描述:

《CHAPTER 4 The Components of the System 4. Memory 課件》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫

1、CHAPTER4TheComponentsoftheSystemUnitMemoryMainMemoryMainmemory–acollectionofstoragelocations,eachwithauniqueidentifiercalledtheaddress.Word-Dataaretransferredtoandfrommemoryingroupsofbitscalledwords.ThenumberofbitsthatcanbestoredinoneCPUregisterinacomputer.Figure5-3MainmemoryAddressSpaceAl

2、thoughprogrammersuseanametoidentifyaword,atthehardwarelevel,eachwordisidentifiedbyanaddress.Addressspace-Thetotalnumberofuniquelyidentifiablelocationsinmemory.Forexample: amemorywith64KBandawordsizeof1bytehasanaddressspacethatrangefrom0to65535.Table5.1MemoryunitsUnit------------KB-kilobyte

3、MB-megabyteGB-gigabyteTB-terabytePB-petabyteEB-exabyteExactNumberofbytes------------------------210bytes220bytes230bytes240bytes250bytes260bytesApproximation------------103bytes106bytes109bytes1012bytes1015bytes1018bytesAddressasBitPatternBecausecomputersoperatebystoringnumbersasbitpattern

4、s,theaddressitselfisalsorepresentedasabitpattern.IfacomputerhasNwordsofmemory,youneedanunsignedintegerofsizelog2Nbitstorefertoeachmemorylocation.Memoryaddressesaredefinedusingunsignedbinaryintegers.Note:Example1Acomputerhas32MB(megabytes)ofmemory.Howmanybitsareneededtoaddressanysinglebytei

5、nmemory?SolutionThememoryaddressspaceis32MB,or225(25x220).Thismeansyouneedlog2225or25bits,toaddresseachbyte.Example2Acomputerhas128MBofmemory.Eachwordinthiscomputeris8bytes.Howmanybitsareneededtoaddressanysinglewordinmemory?SolutionThememoryaddressspaceis128MB,whichmeans227.However,eachwor

6、dis8(23)bytes,whichmeansthatyouhave224words.Thismeansyouneedlog2224or24bits,toaddresseachword.MemoryTypesRAM(RandomAccessMemory)VolatileR/WbyuserTwocategories:DRAM(DynamicRAM)RefreshusedinmostPCsSRAM(StaticRAM)Norefreshfaster、morereliablemoreexpensiveoftenusedonlyasamemorycacheMemoryTypesR

7、OM(ReadOnlyMemory)NonvolatileWrittenbymanufactureHoldthebootingprogramCategories:ROMPROM(ProgrammableROM)-WriteoncebyuserEPROM(ErasablePROM)-physicalremovalandreinstallationbyspecialdeviceEEPROM(ElectronicallyEPROM)-withoutbeingremovedfromcomputerFigure5-4Memo

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動畫的文件,查看預(yù)覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負責(zé)整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時聯(lián)系客服。
3. 下載前請仔細閱讀文檔內(nèi)容,確認文檔內(nèi)容符合您的需求后進行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時可能由于網(wǎng)絡(luò)波動等原因無法下載或下載錯誤,付費完成后未能成功下載的用戶請聯(lián)系客服處理。